I'm trying to make a silent ban would this work?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

H3A

Member
Aug 19, 2019
30
1
8
38
Code:
command /ban <player = %offlineplayer%> [<text>]:
    trigger:
        if arg-1 is not set:
            send "&cPlease provide a user to ban."
        if arg-1 is set:
            if arg-2 contains "-s":
                replace all "-s" with "" in arg-2
                ban player due to arg-2
                send "&e%arg-1% &chas been banned due to &a%arg-2% &7(Silent)" to all player where input is [permission.sk]
        else:
 
I think it should work I'm testing it now
[doublepost=1568453067,1568452945][/doublepost]Just tested it. It said it cannot understand the expression %offlineplayer%

I'm new to skript so I can't really help fix it. Sorry
 
I recommend reading thru the tutorial on creating commands
https://skripthub.net/tutorials/10

this:
"command /ban <player = %offlineplayer%> " <-- the offline player part you are using there is a default. Mean if you dont enter a player it would default to this value, but why the heck would you want to default to yourself?
You aren't going to ban yourself are you?!?!
 
Status
Not open for further replies.