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

Custom RP Ranks (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
This is a GUI so players can set their own rank (prefix), and not be limited to roles, etc
Code:
cmd create rpranks Get a custom RP Rank
cmd add rpranks %player% = %p% 
cmd add rpranks if varset(%args%[1]) then %player% = %args%[1] 
cmd add rpranks %gui%["type"] = "custom_form" 
cmd add rpranks %gui%["title"] = "Enter your RP Rank" 
cmd add rpranks %item1%["type"] = "input" 
cmd add rpranks %item1%["placeholder"] = "Whatever you wish to RP as!" 
cmd add rpranks %item1%["text"] = "Enter your RP Rank" 
cmd add rpranks %content%[] = %item1% 
cmd add rpranks %gui%["content"] = %content% 
cmd add rpranks %response% = dialog(%player%, %gui%) 
cmd add rpranks if varset(%response%) then message %p% Your rank has been set! 
cmd add rpranks if varset(%response%) then goto 14 
cmd add rpranks exit 
cmd add rpranks let %rank% = join(%response%, \" \")
cmd add rpranks asop /setprefix %rank%