• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Simple /tempban with a reason

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

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

Department Head
Staff Member
Department Head
Community Team
#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.