Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank [<offline player>]:
- permission: *
- permission message: &cYou cannot access our rank system.
- trigger:
- if arg-1 is not set:
- send "&cPlease specify a player."
- else:
- open chest with 2 rows named "&cGrant %arg-1%" to player
- wait 1 tick
- format slot 0 of player with book named "&4Owner" to run [make player execute command "systemgrant %arg-1% Owner"]
- format slot 1 of player with book named "&5Admin" to run [make player execute command "systemgrant %arg-1% Admin"]
- format slot 2 of player with book named "&cHead-Admin" to run [make player execute command "systemgrant %arg-1% hd"]
- format slot 3 of player with book named "&4Mod" to run [make player execute command "systemgrant %arg-1% Mod"]
- format slot 4 of player with book named "&eHelper" to run [make player execute command "systemgrant %arg-1% vip"]
- format slot 5 of player with book named "&5Dev" to run [make player execute command "systemgrant %arg-1% Dev"]
- format slot 6 of player with book named "&bMVP" to run [make player execute command "systemgrant %arg-1% MVP"]
- format slot 7 of player with book named "&7Member" to run [make player execute command "systemgrant %arg-1% Default"]
- format slot 13 of player with barrier named "&c&lCancel" to close
- command /systemgrant [<offline player>] [<text>]:
- permission: *
- permission message: &cYou cannot access our rank system.
- trigger:
- if arg-1 is not set:
- send "&cPlease specify a player."
- else:
- open chest with 1 rows named "&cGrant %arg-1%" to player
- wait 1 tick
- format slot 3 of player with green wool named "&aConfirm" to close then run [make console execute command "/pex user %arg-1% group set %arg-2% "] -> [send "&cYou updated %arg-1%'s rank to &e%arg-2%"] -> [send "&cYour rank has been updated to &e%arg-2%" to arg-1]
- format slot 5 of player with red wool named "&cCancel" to close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement