AurasPrivate

Locked | Rank

Sep 9th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.94 KB | None | 0 0
  1. command /rank [<offline player>] [<text>]:
  2. permission: server.rank
  3. permission message: &cYou don't have permission to execute this command!
  4. trigger:
  5. if arg-1 is set:
  6. if arg-2 isn't set:
  7. open chest with 5 rows named "&8Rank Selection (&n%arg-1%)" to player
  8.  
  9. format slot 4 of player with arg-1's skull named "&3&lModifying %arg-1%" with lore "||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
  10.  
  11. format slot 19 of player with book and quill named "&3&lRanks" with lore "" to be unstealable
  12. format slot 19 of player with book named "&4Owner" with lore "||&rRemove all permissions and change||&rrank to owner." to close then run [make player execute "¶rank %arg-1% owner"]
  13. format slot 20 of player with book named "&4Developer" with lore "||&rRemove all permissions and change||&rrank to developer." to close then run [make player execute "¶rank %arg-1% developer"]
  14. format slot 21 of player with book named "&cAdmin" with lore "||&rRemove all permissions and change||&rrank to administrator." to close then run [make player execute "¶rank %arg-1% admin"]
  15. format slot 22 of player with book named "&3Mod+" with lore "||&rRemove all permissions and change||&rrank to moderator plus." to close then run [make player execute "¶rank %arg-1% mod+"]
  16. format slot 23 of player with book named "&dMod" with lore "||&rRemove all permissions and change||&rrank to moderator." to close then run [make player execute "¶rank %arg-1% mod"]
  17. format slot 24 of player with book named "&dTrial Mod" with lore "||&rRemove all permissions and change||&rrank to trial moderator." to close then run [make player execute "¶rank %arg-1% tmod"]
  18. format slot 25 of player with book named "&bBuilder" with lore "||&rRemove all permissions and change||&rrank to builder." to close then run [make player execute "¶rank %arg-1% builder"]
  19. format slot 40 of player with book named "&7User" with lore "||&rRemove all permissions and change||&rrank to user." to close then run [make player execute "¶rank %player% user"]
  20.  
  21. if arg-2 is set:
  22. if arg-2 is "owner":
  23. make player execute "¶rank %arg-1% owner"
  24. if arg-2 is "developer" or "dev":
  25. make player execute "¶rank %arg-1% developer"
  26. if arg-2 is "admin":
  27. make player execute "¶rank %arg-1% admin"
  28. if arg-2 is "mod+", "modplus" or "modp":
  29. make player execute "¶rank %arg-1% mod+"
  30. if arg-2 is "mod":
  31. make player execute "¶rank %arg-1% mod"
  32. if arg-2 is "trialmod", "trial-mod" or "tmod":
  33. make player execute "¶rank %arg-1% tmod"
  34. if arg-2 is "buildteam","bt" or "builder":
  35. make player execute "¶rank %arg-1% builder"
  36. if arg-2 is "user", "member", "none" or "reset":
  37. make player execute "¶rank %arg-1% user"
  38.  
  39.  
  40. else if arg-1 isn't set:
  41. message "&cIncorrect Usage Format: <Required> [Optional]"
  42. message "&cIncorrect usage, &n/rank <player> [rank]"
  43.  
  44. on first join:
  45. set {balance.%player's uuid%} to 100
  46. set {prisonrank.%player's uuid%} to "A"
  47. make console execute "¶rank %player% user"
  48.  
  49. on chat:
  50. if {warden.%player%} is not set:
  51. cancel event
  52. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  53. broadcast "&7[%{prisonrank.%player's uuid%}%&7] %{rank.%player's uuid%}%%player% &7%message%"
  54. else:
  55. cancel event
  56. set tab list name of player to "&7[&3Warden&7] &3%player%"
  57. broadcast "&7[&3Warden&7] %{rank.%player's uuid%}%%player% &7%message%"
  58.  
  59. command /server:sidebar:
  60. trigger:
  61. stop
  62.  
  63. command /¶rank [<offline player>] [<text>]:
  64. permission: server.rank
  65. permission message: &cYou don't have permission to execute this command!
  66. trigger:
  67. if arg-1 is set:
  68. if arg-2 is set:
  69. if arg-2 is "admin":
  70. set {displayrank.%arg-1's uuid%} to "&rAdmin"
  71. set {rank.%arg-1's uuid%} to "&7[&cAdmin&7] &c"
  72. set {staffuser.%arg-1's uuid%} to true
  73. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  74. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
  75. message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
  76. make arg-1 execute "server:sidebar"
  77. if arg-2 is "developer":
  78. set {displayrank.%arg-1's uuid%} to "&rDeveloper"
  79. set {rank.%arg-1's uuid%} to "&7[&4Developer&7] &4"
  80. set {staffuser.%arg-1's uuid%} to true
  81. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  82. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rDeveloper" to player
  83. message "&7[&b&l*&7] Rank updated to &rDeveloper" to arg-1
  84. make arg-1 execute "server:sidebar"
  85. if arg-2 is "owner":
  86. set {displayrank.%arg-1's uuid%} to "&rOwner"
  87. set {rank.%arg-1's uuid%} to "&7[&4Owner&7] &4"
  88. set {staffuser.%arg-1's uuid%} to true
  89. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  90. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rOwner" to player
  91. message "&7[&b&l*&7] Rank updated to &rOwner" to arg-1
  92. make arg-1 execute "server:sidebar"
  93. if arg-2 is "mod+":
  94. set {displayrank.%arg-1's uuid%} to "&rMod+"
  95. set {rank.%arg-1's uuid%} to "&7[&3Mod+&7] &3"
  96. set {staffuser.%arg-1's uuid%} to true
  97. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  98. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod Plus" to player
  99. message "&7[&b&l*&7] Rank updated to &rMod Plus" to arg-1
  100. make arg-1 execute "server:sidebar"
  101. if arg-2 is "mod":
  102. set {displayrank.%arg-1's uuid%} to "&rMod"
  103. set {rank.%arg-1's uuid%} to "&7[&5Mod&7] &5"
  104. set {staffuser.%arg-1's uuid%} to true
  105. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  106. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
  107. message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
  108. make arg-1 execute "server:sidebar"
  109. if arg-2 is "tmod":
  110. set {displayrank.%arg-1's uuid%} to "&rTrial Mod"
  111. set {rank.%arg-1's uuid%} to "&7[&dTrial-Mod&7] &d"
  112. set {staffuser.%arg-1's uuid%} to true
  113. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  114. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rTrial Mod" to player
  115. message "&7[&b&l*&7] Rank updated to &rTrial Mod" to arg-1
  116. make arg-1 execute "server:sidebar"
  117. if arg-2 is "builder":
  118. set {displayrank.%arg-1's uuid%} to "&rBuilder"
  119. set {rank.%arg-1's uuid%} to "&7[&bBuilder&7] &b"
  120. set {staffuser.%arg-1's uuid%} to true
  121. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  122. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
  123. message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
  124. make arg-1 execute "server:sidebar"
  125. if arg-2 is "warden":
  126. set {displayrank.%arg-1's uuid%} to "&rWarden"
  127. set {rank.%arg-1's uuid%} to "&7[&3Warden&7] &3"
  128. set {staffuser.%arg-1's uuid%} to false
  129. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  130. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rWarden" to player
  131. message "&7[&b&l*&7] Rank updated to &rWarden" to arg-1
  132. make arg-1 execute "server:sidebar"
  133. if arg-2 is "user":
  134. set {displayrank.%arg-1's uuid%} to "&rNone"
  135. set {rank.%arg-1's uuid%} to "&7"
  136. set {staffuser.%arg-1's uuid%} to false
  137. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  138. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
  139. message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
  140. make arg-1 execute "server:sidebar"
Add Comment
Please, Sign In to add comment