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

Gamemode (menu) basic command

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
1st thx to mcpeboy
For testing the menu and making sure is working good

Note :
Add Your Own ranks on %allowed%
to make be able to use it


are you tired of typing player names and making then wrong then use this command
allow your staff to change player gamemode
without OP


cmd delete gm
cmd create gm
cmd edit gm 1 let %group% = playergroup(%p%)
cmd edit gm 2 let %allowed% = array(\"staff\")
cmd edit gm 3 if %group% in %allowed% then goto 6
cmd edit gm 4 message %p% §l§cInfo+ §eyou dont have the right rank for this command!
cmd edit gm 5 exit
cmd edit gm 6 let %player% = %p%
cmd edit gm 7 if varset(%args%[1]) then %player% = %args%[1]
cmd edit gm 8 %all% = onlineplayers()
cmd edit gm 31 let %form%[\"type\"] = \"custom_form\"
cmd edit gm 32 let %form%[\"title\"] = \"§c§lCHANGE PLAYER GAMEMODE\"
cmd edit gm 35 let %item1%[\"type\"] = \"dropdown\"
cmd edit gm 36 let %item1%[\"text\"] = \"§l§bSelect Player\"
cmd edit gm 37 let %item1%[\"options\"] = %all%
cmd edit gm 38 let %item2%[\"type\"] = \"dropdown"
cmd edit gm 39 let %item2%[\"text\"] = \"§e§lSelect Gamemode\"
cmd edit gm 41 let %item2%[\"options\"] = array(\"0\", \"1\", \"2\", \"3\")
cmd edit gm 53 let %content%[] = %item1%
cmd edit gm 54 let %content%[] = %item2%
cmd edit gm 58 let %form%[\"content\"] = %content%
cmd edit gm 60 let %response% = dialog(%player%, %form%)
cmd edit gm 61 if %response% = %false% then exit
cmd edit gm 62 %index% = %response%[0]
cmd edit gm 63 %name% = %all%[%index%]
cmd edit gm 64 %mode% = %response%[1]
cmd edit gm 65 if varset(%name%) and varset(%mode%) then goto 100
cmd edit gm 66 exit
cmd edit gm 100 asop /gamemode %mode% %name%
 
Last edited by a moderator:

thedeibo

Department Head
Staff Member
Department Head
Community Team
#4
Don't mind my little edit.
Just tidied the first post a little.
(Put the large image in a spoiler)