Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tablistrank [<text>] [<player>] [<text>]:
- permission: tablist.rank
- trigger:
- if arg 1 is "set":
- if arg 2 is not set:
- message "&cSpecify a player!"
- if arg 2 is set:
- if arg 3 is not set:
- message "&cSpecify a rank"
- if arg 3 is set:
- message "&6&lMineX &8» &6Changed &e%arg 2%'s &6rank to &e%arg 3%"
- set {%arg 2%.rank} to "%arg 3%"
- if arg 1 is "clear":
- if arg 2 is not set:
- message "&cSpecify a player!"
- if arg 2 is set:
- set {%arg 2%.rank} to "default"
- message "&6&lMineX &8» &6Removed &e%arg 2%'s &6rank!"
- on join:
- while player is online:
- if {%event-player%.rank} is "staff":
- set the player's tablist name to "&8» &8[&6Staff&8] &e%name of player%"
- else:
- set the player's tablist name to "&7%name of player%"
- wait 5 ticks
Advertisement
Add Comment
Please, Sign In to add comment