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"
```
#Trying to make it so if you have permission. you can't get banned
1 messages · Page 1 of 1 (latest)
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
You dont need to add if arg-1 is set and if arg-2 is set the argument alr does it for u
Move the if player has permission "punish.bypass" to above kick arg-1 and change player to arg-1
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
The one u sent checks the players permission too not the person being kicked so change it to arg-1
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
good point. I can give the proper syntax if you wish ban arg-1 for 7 days due to arg-2
Prob should have an argument as a number so that you can choose how long it is
Also shouldn’t arg2 be set to a list so that it won’t die after spaces