Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<offline player>] [<text>]:
- permission: server.rank
- permission message: &cYou don't have permission to execute this command!
- trigger:
- if arg-1 is set:
- if arg-2 isn't set:
- open chest with 5 rows named "&8Rank Selection (&n%arg-1%)" to player
- format slot 4 of player with arg-1's skull named "&3&lModifying %arg-1%" with lore "||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
- format slot 19 of player with book and quill named "&3&lRanks" with lore "" to be unstealable
- format slot 19 of player with book named "&4Owner" with lore "||&rRemove all permissions and change||&rrank to owner." to close then run [make player execute "¶rank %arg-1% owner"]
- format slot 20 of player with book named "&4Developer" with lore "||&rRemove all permissions and change||&rrank to developer." to close then run [make player execute "¶rank %arg-1% developer"]
- format slot 21 of player with book named "&cAdmin" with lore "||&rRemove all permissions and change||&rrank to administrator." to close then run [make player execute "¶rank %arg-1% admin"]
- format slot 22 of player with book named "&3Mod+" with lore "||&rRemove all permissions and change||&rrank to moderator plus." to close then run [make player execute "¶rank %arg-1% mod+"]
- format slot 23 of player with book named "&dMod" with lore "||&rRemove all permissions and change||&rrank to moderator." to close then run [make player execute "¶rank %arg-1% mod"]
- format slot 24 of player with book named "&dTrial Mod" with lore "||&rRemove all permissions and change||&rrank to trial moderator." to close then run [make player execute "¶rank %arg-1% tmod"]
- format slot 25 of player with book named "&bBuilder" with lore "||&rRemove all permissions and change||&rrank to builder." to close then run [make player execute "¶rank %arg-1% builder"]
- format slot 40 of player with book named "&7User" with lore "||&rRemove all permissions and change||&rrank to user." to close then run [make player execute "¶rank %player% user"]
- if arg-2 is set:
- if arg-2 is "owner":
- make player execute "¶rank %arg-1% owner"
- if arg-2 is "developer" or "dev":
- make player execute "¶rank %arg-1% developer"
- if arg-2 is "admin":
- make player execute "¶rank %arg-1% admin"
- if arg-2 is "mod+", "modplus" or "modp":
- make player execute "¶rank %arg-1% mod+"
- if arg-2 is "mod":
- make player execute "¶rank %arg-1% mod"
- if arg-2 is "trialmod", "trial-mod" or "tmod":
- make player execute "¶rank %arg-1% tmod"
- if arg-2 is "buildteam","bt" or "builder":
- make player execute "¶rank %arg-1% builder"
- if arg-2 is "user", "member", "none" or "reset":
- make player execute "¶rank %arg-1% user"
- else if arg-1 isn't set:
- message "&cIncorrect Usage Format: <Required> [Optional]"
- message "&cIncorrect usage, &n/rank <player> [rank]"
- on first join:
- set {balance.%player's uuid%} to 100
- make console execute "¶rank %player% user"
- on chat:
- cancel event
- set tab list name of player to "%{rank.%player's uuid%}%%player%"
- broadcast "%{rank.%player's uuid%}%%player% &7%message%"
- command /server:sidebar:
- trigger:
- stop
- command /¶rank [<offline player>] [<text>]:
- permission: server.rank
- permission message: &cYou don't have permission to execute this command!
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 is "admin":
- set {displayrank.%arg-1's uuid%} to "&rAdmin"
- set {rank.%arg-1's uuid%} to "&7[&cAdmin&7] &c"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
- message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "developer":
- set {displayrank.%arg-1's uuid%} to "&rDeveloper"
- set {rank.%arg-1's uuid%} to "&7[&4Developer&7] &4"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rDeveloper" to player
- message "&7[&b&l*&7] Rank updated to &rDeveloper" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "owner":
- set {displayrank.%arg-1's uuid%} to "&rOwner"
- set {rank.%arg-1's uuid%} to "&7[&4Owner&7] &4"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rOwner" to player
- message "&7[&b&l*&7] Rank updated to &rOwner" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "mod+":
- set {displayrank.%arg-1's uuid%} to "&rMod+"
- set {rank.%arg-1's uuid%} to "&7[&3Mod+&7] &3"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod Plus" to player
- message "&7[&b&l*&7] Rank updated to &rMod Plus" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "mod":
- set {displayrank.%arg-1's uuid%} to "&rMod"
- set {rank.%arg-1's uuid%} to "&7[&5Mod&7] &5"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
- message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "tmod":
- set {displayrank.%arg-1's uuid%} to "&rTrial Mod"
- set {rank.%arg-1's uuid%} to "&7[&dTrial-Mod&7] &d"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rTrial Mod" to player
- message "&7[&b&l*&7] Rank updated to &rTrial Mod" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "builder":
- set {displayrank.%arg-1's uuid%} to "&rBuilder"
- set {rank.%arg-1's uuid%} to "&7[&bBuilder&7] &b"
- set {staffuser.%arg-1's uuid%} to true
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
- message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "warden":
- set {displayrank.%arg-1's uuid%} to "&rWarden"
- set {rank.%arg-1's uuid%} to "&7[&3Warden&7] &3"
- set {staffuser.%arg-1's uuid%} to false
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rWarden" to player
- message "&7[&b&l*&7] Rank updated to &rWarden" to arg-1
- make arg-1 execute "server:sidebar"
- if arg-2 is "user":
- set {displayrank.%arg-1's uuid%} to "&rNone"
- set {rank.%arg-1's uuid%} to "&7"
- set {staffuser.%arg-1's uuid%} to false
- set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
- message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
- message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
- make arg-1 execute "server:sidebar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement