#Trying to make it so if you have permission. you can't get banned

1 messages · Page 1 of 1 (latest)

silent marsh
#
command /ban <offline player> <text>:
    permission: ban
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                kick arg-1 
                set {ban::%arg-1's uuid%} to true
                add 1 to {bancounter}
                broadcast "&d%arg-1% &7has been &cbanned &7for &f%arg-2%"
            if player has permission "punish.bypass":
                stop
                send "noob"
                ```
tulip comet
#
command /ban <offline player> <text>:
    permission: ban
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-1 has permission “punish.bypass”:
                    send “noob” to player
                else:
                    kick arg-1 
                    set {ban::%arg-1's uuid%} to true
                    add 1 to {bancounter}
                    broadcast "&d%arg-1% &7has been &cbanned &7for &f%arg-2%"
                ```
#

Wait unfinished lemme fox it

#

Fix

steep dragon
tulip comet
#

If you want to get the code anyway I posted it already

#

But emir is also right there is no point in doing those things

steep dragon
tulip comet
#

Oh yeah my

#

Bro it’s so hard to do it on mobile

#

Yeah done

#

@silent marsh btw what are you using arg-2 for its doing one thing, and your not even banning the player your kicking them and not setting how long they’re banned for

south cape
tulip comet
#

Also shouldn’t arg2 be set to a list so that it won’t die after spaces