Simple /tempban with a reason

Raptor14

Tree Puncher
#1
A simple /tempban command with a reason!

Code:
cmd create tempban Ban someone temporary with a reason. | /tempban <player> <time> <reason>

cmd add tempban let %player% = %args%[1]

cmd add tempban let %timer% = %args%[2]

cmd add tempban let %reason% = join(%args%[3+], \" \")

cmd add tempban /ban %player% %reason%

cmd add tempban sleep %timer%

cmd add tempban ascon /pardon %player%

cmd add tempban exit
Let me know if theirs any errors, thank you!
 
Last edited by a moderator:

thedeibo

Staff member
Department Head
Community Moderator
#3
Line you don't need:

Code:
cmd add tempban /kick %player% %reason%
it's just one extra line that you don't really need. :)
Instead use
Code:
cmd add tempban /ban %player% %reason%
It also displays "You are banned: %reason%" instead of kicked too
 

Raptor14

Tree Puncher
#4
Line you don't need:

Code:
cmd add tempban /kick %player% %reason%
it's just one extra line that you don't really need. :)
Instead use
Code:
cmd add tempban /ban %player% %reason%
It also displays "You are banned: %reason%" instead of kicked too
Oh, welp I cant edit it.