Oxalist

Untitled

Dec 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. command /tablistrank [<text>] [<player>] [<text>]:
  2. permission: tablist.rank
  3. trigger:
  4. if arg 1 is "set":
  5. if arg 2 is not set:
  6. message "&cSpecify a player!"
  7. if arg 2 is set:
  8. if arg 3 is not set:
  9. message "&cSpecify a rank"
  10. if arg 3 is set:
  11. message "&6&lMineX &8Β» &6Changed &e%arg 2%'s &6rank to &e%arg 3%"
  12. set {%arg 2%.rank} to "%arg 3%"
  13. if arg 1 is "clear":
  14. if arg 2 is not set:
  15. message "&cSpecify a player!"
  16. if arg 2 is set:
  17. set {%arg 2%.rank} to "default"
  18. message "&6&lMineX &8Β» &6Removed &e%arg 2%'s &6rank!"
  19.  
  20. on chat:
  21. while player is online:
  22. if {%event-player%.rank} is "staff":
  23. set the player's tablist name to "&8Β» &8[&6Staff&8] &e%name of player%"
  24. else:
  25. set the player's tablist name to "&7%name of player%"
  26. wait 5 ticks
Advertisement
Add Comment
Please, Sign In to add comment