A simple /tempban command with a reason!
Let me know if theirs any errors, thank you!
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
Last edited by a moderator: