Advertisement
AurasPrivate

Ranks & Chat

Jun 8th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. command /rank [<offline player>]:
  2. permission: server.rank
  3. trigger:
  4. if arg-1 is not set:
  5. send "&cInvalid usage!"
  6. else if arg-1 is set:
  7. open chest with 5 rows named "&8Rank Selection &8(&n%arg-1%)" to player
  8. format slot 4 of player with arg-1's skull named "&bModifying %arg-1%" with lore "||&rIn this GUI you can modify||&r%arg-1%'s rank.||||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1%}%" to be unstealable
  9. format slot 22 of player with paper named "&bRanks" to be unstealable
  10. format slot 29 of player with book named "&cAdmin" with lore "||&rClick to change %arg-1%'s rank||&rto owner." to close then run [make player execute "¶rank %arg-1% admin"]
  11. format slot 30 of player with book named "&2Moderator" with lore "||&rClick to change %arg-1%'s rank||&rto moderator." to close then run [make player execute "¶rank %arg-1% mod"]
  12. format slot 31 of player with book named "&9Helper" with lore "||&rClick to change %arg-1%'s rank||&rto helper." to close then run [make player execute "¶rank %arg-1% helper"]
  13. format slot 32 of player with book named "&6Youtuber" with lore "||&rClick to change %arg-1%'s rank||&rto youtuber." to close then run [make player execute "¶rank %arg-1% yt"]
  14. format slot 33 of player with book named "&3Build Team" with lore "||&rClick to change %arg-1%'s rank||&rto build team." to close then run [make player execute "¶rank %arg-1% bt"]
  15. format slot 40 of player with book named "&7User" with lore "||&rClick to change %arg-1%'s rank||&rto user." to close then run [make player execute "¶rank %arg-1% user"]
  16. on chat:
  17. cancel event
  18. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  19. broadcast "%{rank.%player's uuid%}%%player% &7» &7%message%"
  20.  
  21. command /¶rank [<offline player>] [<text>]:
  22. permission: haste.rank
  23. trigger:
  24. if arg-1 isn't set:
  25. message "&cIncorrect usage."
  26. if arg-1 is set:
  27. if arg-2 is "admin":
  28. if player has permission "server.rank":
  29. set {rank.%arg-1's uuid%} to "&c[ADMIN] &C"
  30. set {shortrank.%arg-1's uuid%} to "&rAdministrator"
  31. set tab list name of arg 1 to "&c[ADMIN] &C%player%"
  32. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
  33. send "&eYour server rank has been set to &bAdmin&e!" to arg 1
  34. if player doesn't have permission "server.manager":
  35. send "&cYou're not allowed to execute this command!"
  36. if arg-2 is "yt":
  37. if player has permission "server.rank":
  38. set {rank.%arg-1's uuid%} to "&6[YT] &6"
  39. set {shortrank.%arg-1's uuid%} to "&rYoutuber"
  40. set tab list name of arg 1 to "&6[YT] &6%player%"
  41. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bYoutuber &eprevious rank removed."
  42. send "&eYour server rank has been set to &bYoutuber&e!" to arg 1
  43. if player doesn't have permission "server.manager":
  44. send "&cYou're not allowed to execute this command!"
  45. if arg-2 is "mod":
  46. if player has permission "server.rank":
  47. set {rank.%arg-1's uuid%} to "&2[MOD] &2"
  48. set {shortrank.%arg-1's uuid%} to "&rModerator"
  49. set tab list name of arg 1 to "&2[MOD] &2%player%"
  50. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
  51. send "&eYour server rank has been set to &bMod&e!" to arg 1
  52. if player doesn't have permission "server.manager":
  53. send "&cYou're not allowed to execute this command!"
  54. if arg-2 is "helper":
  55. if player has permission "server.rank":
  56. set {rank.%arg-1's uuid%} to "&9[HELPER] &9"
  57. set {shortrank.%arg-1's uuid%} to "&rHelper"
  58. set tab list name of arg 1 to "&9[HELPER] &9%player%"
  59. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bHelper &eprevious rank removed."
  60. send "&eYour server rank has been set to &bHelper&e!" to arg 1
  61. if player doesn't have permission "server.manager":
  62. send "&cYou're not allowed to execute this command!"
  63. if arg-2 is "user":
  64. if player has permission "server.rank":
  65. set {rank.%arg-1's uuid%} to "&7"
  66. set {shortrank.%arg-1's uuid%} to "&rUser"
  67. set tab list name of arg 1 to "&7%player%"
  68. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
  69. send "&eYour server rank has been set to &bUser&e!" to arg 1
  70. if player doesn't have permission "server.manager":
  71. send "&cYou're not allowed to execute this command!"
  72. if arg-2 is "bt":
  73. if player has permission "server.rank":
  74. set {rank.%arg-1's uuid%} to "&3[BUILD TEAM] &3"
  75. set {shortrank.%arg-1's uuid%} to "&rBuild Team"
  76. set tab list name of arg 1 to "&3[BUILD TEAM] &3%player%"
  77. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bBuild Team &eprevious rank removed."
  78. send "&eYour server rank has been set to &bBuild Team&e!" to arg 1
  79. if player doesn't have permission "server.manager":
  80. send "&cYou're not allowed to execute this command!"
  81.  
  82. on first join:
  83. set {rank.%player's uuid%} to "&7"
  84. set {shortrank.%player's uuid%} to "&rUser"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement