Advertisement
twogz

Untitled

Jul 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 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.  
  17. command /¶rank [<offline player>] [<text>]:
  18. permission: haste.rank
  19. trigger:
  20. if arg-1 isn't set:
  21. message "&cIncorrect usage."
  22. if arg-1 is set:
  23. if arg-2 is "admin":
  24. if player has permission "server.rank":
  25. set {rank.%arg-1's uuid%} to "&c[ADMIN] &C"
  26. set {shortrank.%arg-1's uuid%} to "&rAdministrator"
  27. set tab list name of arg 1 to "&c[ADMIN] &C%player%"
  28. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
  29. send "&eYour server rank has been set to &bAdmin&e!" to arg 1
  30. if player doesn't have permission "server.manager":
  31. send "&cYou're not allowed to execute this command!"
  32. if arg-2 is "yt":
  33. if player has permission "server.rank":
  34. set {rank.%arg-1's uuid%} to "&6[YT] &6"
  35. set {shortrank.%arg-1's uuid%} to "&rYoutuber"
  36. set tab list name of arg 1 to "&6[YT] &6%player%"
  37. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bYoutuber &eprevious rank removed."
  38. send "&eYour server rank has been set to &bYoutuber&e!" to arg 1
  39. if player doesn't have permission "server.manager":
  40. send "&cYou're not allowed to execute this command!"
  41. if arg-2 is "mod":
  42. if player has permission "server.rank":
  43. set {rank.%arg-1's uuid%} to "&2[MOD] &2"
  44. set {shortrank.%arg-1's uuid%} to "&rModerator"
  45. set tab list name of arg 1 to "&2[MOD] &2%player%"
  46. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
  47. send "&eYour server rank has been set to &bMod&e!" to arg 1
  48. if player doesn't have permission "server.manager":
  49. send "&cYou're not allowed to execute this command!"
  50. if arg-2 is "helper":
  51. if player has permission "server.rank":
  52. set {rank.%arg-1's uuid%} to "&9[HELPER] &9"
  53. set {shortrank.%arg-1's uuid%} to "&rHelper"
  54. set tab list name of arg 1 to "&9[HELPER] &9%player%"
  55. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bHelper &eprevious rank removed."
  56. send "&eYour server rank has been set to &bHelper&e!" to arg 1
  57. if player doesn't have permission "server.manager":
  58. send "&cYou're not allowed to execute this command!"
  59. if arg-2 is "user":
  60. if player has permission "server.rank":
  61. set {rank.%arg-1's uuid%} to "&7"
  62. set {shortrank.%arg-1's uuid%} to "&rUser"
  63. set tab list name of arg 1 to "&7%player%"
  64. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
  65. send "&eYour server rank has been set to &bUser&e!" to arg 1
  66. if player doesn't have permission "server.manager":
  67. send "&cYou're not allowed to execute this command!"
  68. if arg-2 is "bt":
  69. if player has permission "server.rank":
  70. set {rank.%arg-1's uuid%} to "&3[BUILD TEAM] &3"
  71. set {shortrank.%arg-1's uuid%} to "&rBuild Team"
  72. set tab list name of arg 1 to "&3[BUILD TEAM] &3%player%"
  73. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bBuild Team &eprevious rank removed."
  74. send "&eYour server rank has been set to &bBuild Team&e!" to arg 1
  75. if player doesn't have permission "server.manager":
  76. send "&cYou're not allowed to execute this command!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement