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

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
cmd create bangui Ban GUI

cmd add bangui let %group% = playergroup(%p%)

cmd add bangui let %allowed% = array(\”Owner\”, \”CoOwner\”, \”Admin\”)

cmd add bangui if %group% in %allowed then goto 6

cmd add bangui message %p% You do not have permission!

cmd add bangui exit

cmd add bangui let %player% = %p%

cmd add bangui if varset(%args%[1]) then %player% = %args%[1]

cmd add bangui %all% = onlineplayers()

cmd add bangui let %form%[\”type\”] = \”custom_form\”

cmd add bangui let %form%[\”title\”] = \”Ban GUI\”

cmd add bangui let %item1%[\”type\”] = \”dropdown\”

cmd add bangui let %item1%[\”text\”] = \”Select Player\”

cmd add bangui let %item1%[\”options\”] = %all%

cmd add bangui let %content%[] = %item1%

cmd add bangui let %form%[\”content\”] = %content%

cmd add bangui let %response% = dialog(%player%, %form%)

cmd add bangui if %response% = %false% then exit

cmd add bangui %index% = %response%[0]

cmd add bangui %name% = %all%[%index%]

cmd add bangui asop /ban %name%


If there are any errors please tell me 😃
 
#4
Some people said that there where errors in my first ban GUI! Here is a new and better edit of it!
cmd create ban Ban a player from the server!
cmd add ban let %staff% = array(\”Owner\”, \”CoOwner\”, \”Admin\”)
cmd add ban let %allowed% = playergroup(%p%)
cmd add ban if %allowed% in %staff% then goto 6
cmd add ban message %p% You don’t have permission for this command!
cmd add ban exit
cmd add ban %all% = onlineplayers()
cmd add ban %form%[\”type\”] = \”custom_form\”
cmd add ban %form%[\”title\”] = \”Ban\”
cmd add ban %i1%[\”type\”] = \”dropdown\”
cmd add ban %i1%[\”text\”] = \”Select a Player!\”
cmd add ban %i1%[\”options\”] = %all%
cmd add ban %i2%[\”type\”] = \”input\”
cmd add ban %i2%[\”text\”] = \”Reason:\”
cmd add ban %i2%[\”placeholder\”] = \”Reason Here...\”
cmd add ban %con%[] = %i1%
cmd add ban %con%[] = %i2%
cmd add ban %form%[\”content\”] = %con%
cmd add ban %res% = dialog(%p%, %form%)
cmd add ban if %res% = %false% then exit
cmd add ban %index% = %res%[0]
cmd add ban %name% = %all%[%index%]
cmd add ban %reason% = %res%[1]
cmd add ban if %reason% = \”\” then exit
cmd add ban message %all% %p% Banned %name% For: %reason%
cmd add ban asop /ban %name%
cmd add ban exit

If there are any errors please tell me!