• 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.

Tempban GUI

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.
#1
Code:
cmd create banhammer

cmd add banhammer let %ban% = %args%[1]

cmd add banhammer if varset(%ban%) = %p% then exit

cmd add banhammer if %ban% = %p% then goto 50

cmd add banhammer let %online% = onlineplayers()

cmd add banhammer if %ban% notin %online% then goto 52

cmd add banhammer let %op% = playerstatus(%p%)

cmd add banhammer if %op% = %false% then goto 54

cmd add banhammer %player% = %p%

cmd add banhammer %gui2%[\"type\"] = \"form\"

cmd add banhammer %gui2%[\"title\"] = \"§cBanHammer §6- §cTimer Ban\"

cmd add banhammer %button0%[\"text\"] = \"§cCancel\"

cmd add banhammer %button1%[\"text\"] = \"§7Ban | §a1 hours\"

cmd add banhammer %button2%[\"text\"] = \"§7Ban | §212 hours\"

cmd add banhammer %button3%[\"text\"] = \"§7Ban | §324 hours\"

cmd add banhammer %button4%[\"text\"] = \"§7Ban | §b7 days\"

cmd add banhammer %button5%[\"text\"] = \"§7Ban | §714 days\"

cmd add banhammer %button6%[\"text\"] = \"§7Ban | §830 days\"

cmd add banhammer %button7%[\"text\"] = \"§7Ban | §8Permanently\"

cmd add banhammer %buttons%[] = %button0%

cmd add banhammer %buttons%[] = %button1%

cmd add banhammer %buttons%[] = %button2%

cmd add banhammer %buttons%[] = %button3%

cmd add banhammer %buttons%[] = %button4%

cmd add banhammer %buttons%[] = %button5%

cmd add banhammer %buttons%[] = %button6%

cmd add banhammer %buttons%[] = %button7%

cmd add banhammer %gui2%[\"buttons\"] = %buttons%

cmd add banhammer %content%[] = %gui2%

cmd add banhammer %gui2%[\"content\"] = \"§§\"

cmd add banhammer %response% = dialog(%player%, %gui2%)

cmd add banhammer if %response% = 0 then exit

cmd add banhammer if %response% = 1 then /timerban add %ban% 1 1:Hour

cmd add banhammer if %response% = 2 then /timerban add %ban% 12 12:Hours

cmd add banhammer if %response% = 3 then /timerban add %ban% 24 1:Day

cmd add banhammer if %response% = 4 then /timerban add %ban% 168 7:Days

cmd add banhammer if %response% = 5 then /timerban add %ban% 336 14:Days

cmd add banhammer if %response% = 6 then /timerban add %ban% 720 30:Days

cmd add banhammer if %response% = 7 then /ban %ban% §4 Permanently banned from §4Red§cEon§6PE

cmd add banhammer exit

cmd insert banhammer 50 message %p% §cError: §4%p%§c, You cannot ban yourself

cmd add banhammer exit

cmd add banhammer message %p% §cError: §4%p%§c, Desired banned player is not currently online

cmd add banhammer exit

cmd add banhammer message %p% §cError: §4%p%§c, insufficient permissions

cmd add banhammer exit
NOTE: Original creator of this command was discord user @iTSniels. Command code was edited to fit current LEET and MCPE updates, and solving of code line errors.