Advertisement
AurasPrivate

Rank

Sep 6th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. command /rank [<offline player>] [<text>]:
  2. permission: Riot.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 "&4Host" with lore "||&rRemove all permissions and change||&rrank to host." to close then run [make player execute "¶rank %arg-1% host"]
  13. format slot 20 of player with book named "&4Admin" with lore "||&rRemove all permissions and change||&rrank to administrator." to close then run [make player execute "¶rank %arg-1% admin"]
  14. format slot 21 of player with book named "&dManager" with lore "||&rRemove all permissions and change||&rrank to manager." to close then run [make player execute "¶rank %arg-1% manager"]
  15. format slot 22 of player with book named "&6Senior Mod" with lore "||&rRemove all permissions and change||&rrank to senior moderator." to close then run [make player execute "¶rank %arg-1% srmod"]
  16. format slot 23 of player with book named "&eMod" 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 "&eJunior Mod" with lore "||&rRemove all permissions and change||&rrank to junior moderator." to close then run [make player execute "¶rank %arg-1% jrmod"]
  18. format slot 25 of player with book named "&aBuild Team" with lore "||&rRemove all permissions and change||&rrank to build team." to close then run [make player execute "¶rank %arg-1% bt"]
  19. format slot 29 of player with book named "&bRiot" with lore "||&rRemove all permissions and change||&rrank to Riot." to close then run [make player execute "¶rank %player% Riot"]
  20. format slot 30 of player with book named "&5Medic" with lore "||&rRemove all permissions and change||&rrank to medic." to close then run [make player execute "¶rank %player% medic"]
  21. format slot 31 of player with book named "&5Amethyst" with lore "||&rRemove all permissions and change||&rrank to amethyst." to close then run [make player execute "¶rank %player% amethyst"]
  22. format slot 32 of player with book named "&6Gold" with lore "||&rRemove all permissions and change||&rrank to gold." to close then run [make player execute "¶rank %player% gold"]
  23. format slot 33 of player with book named "&rSilver" with lore "||&rRemove all permissions and change||&rrank to silver." to close then run [make player execute "¶rank %player% silver"]
  24. 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"]
  25.  
  26. if arg-2 is set:
  27. if arg-2 is "admin":
  28. make player execute "¶rank %arg-1% admin"
  29. if arg-2 is "manager":
  30. make player execute "¶rank %arg-1% manager"
  31. if arg-2 is "host":
  32. make player execute "¶rank %arg-1% host"
  33. if arg-2 is "seniormod", "srmod" or "smod":
  34. make player execute "¶rank %arg-1% srmod"
  35. if arg-2 is "mod":
  36. make player execute "¶rank %arg-1% mod"
  37. if arg-2 is "juniormod", "jrmod" or "jmod":
  38. make player execute "¶rank %arg-1% jrmod"
  39. if arg-2 is "buildteam","bt" or "builder":
  40. make player execute "¶rank %arg-1% bt"
  41. if arg-2 is "Riot":
  42. make player execute "¶rank %arg-1% Riot"
  43. if arg-2 is "medic":
  44. make player execute "¶rank %arg-1% medic"
  45. if arg-2 is "amethyst":
  46. make player execute "¶rank %arg-1% amethyst"
  47. if arg-2 is "gold":
  48. make player execute "¶rank %arg-1% gold"
  49. if arg-2 is "silver":
  50. make player execute "¶rank %arg-1% silver"
  51. if arg-2 is "bronze":
  52. make player execute "¶rank %arg-1% bronze"
  53. if arg-2 is "user", "member", "none" or "reset":
  54. make player execute "¶rank %arg-1% user"
  55.  
  56.  
  57. else if arg-1 isn't set:
  58. message "&cIncorrect Usage Format: <Required> [Optional]"
  59. message "&cIncorrect usage, &n/rank <player> [rank]"
  60.  
  61. on first join:
  62. set {rating.%player's uuid%} to 0
  63. set {kills.%player's uuid%} to 0
  64. set {deaths.%player's uuid%} to 0
  65. set {coins.%player's uuid%} to 100
  66. make console execute "¶rank %player% user"
  67.  
  68. on chat:
  69. cancel event
  70. set tab list name of player to "%{rank.%player's uuid%}%%player%"
  71. broadcast "&7(%{rating.%player's uuid%}%&7) %{rank.%player's uuid%}%%player% &7%message%"
  72.  
  73. command /Riot:sidebar:
  74. trigger:
  75. stop
  76.  
  77. command /¶rank [<offline player>] [<text>]:
  78. permission: Riot.rank
  79. permission message: &cYou don't have permission to execute this command!
  80. trigger:
  81. if arg-1 is set:
  82. if arg-2 is set:
  83. if arg-2 is "admin":
  84. set {displayrank.%arg-1's uuid%} to "&rAdmin"
  85. set {rank.%arg-1's uuid%} to "&7[&4Admin&7] &4"
  86. set {staffuser.%arg-1's uuid%} to true
  87. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  88. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAdministrator" to player
  89. message "&7[&b&l*&7] Rank updated to &rAdministrator" to arg-1
  90. make arg-1 execute "Riot:sidebar"
  91. if arg-2 is "manager":
  92. set {displayrank.%arg-1's uuid%} to "&rManager"
  93. set {rank.%arg-1's uuid%} to "&7[&bManager&7] &b"
  94. set {staffuser.%arg-1's uuid%} to true
  95. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  96. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rManager" to player
  97. message "&7[&b&l*&7] Rank updated to &rManager" to arg-1
  98. make arg-1 execute "Riot:sidebar"
  99. if arg-2 is "host":
  100. set {displayrank.%arg-1's uuid%} to "&rHost"
  101. set {rank.%arg-1's uuid%} to "&7[&4Host&7] &4"
  102. set {staffuser.%arg-1's uuid%} to true
  103. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  104. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rHost" to player
  105. message "&7[&b&l*&7] Rank updated to &rHost" to arg-1
  106. make arg-1 execute "Riot:sidebar"
  107. if arg-2 is "srmod":
  108. set {displayrank.%arg-1's uuid%} to "&rSenior Mod"
  109. set {rank.%arg-1's uuid%} to "&7[&6Senior Mod&7] &6"
  110. set {staffuser.%arg-1's uuid%} to true
  111. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  112. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rSenior Mod" to player
  113. message "&7[&b&l*&7] Rank updated to &rSenior Mod" to arg-1
  114. make arg-1 execute "Riot:sidebar"
  115. if arg-2 is "mod":
  116. set {displayrank.%arg-1's uuid%} to "&rMod"
  117. set {rank.%arg-1's uuid%} to "&7[&eMod&7] &e"
  118. set {staffuser.%arg-1's uuid%} to true
  119. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  120. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMod" to player
  121. message "&7[&b&l*&7] Rank updated to &rMod" to arg-1
  122. make arg-1 execute "riot:sidebar"
  123. if arg-2 is "jrmod":
  124. set {displayrank.%arg-1's uuid%} to "&rJunior Mod"
  125. set {rank.%arg-1's uuid%} to "&7[&eJunior Mod&7] &e"
  126. set {staffuser.%arg-1's uuid%} to true
  127. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  128. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rJunior Mod" to player
  129. message "&7[&b&l*&7] Rank updated to &rJunior Mod" to arg-1
  130. make arg-1 execute "riot:sidebar"
  131. if arg-2 is "bt":
  132. set {displayrank.%arg-1's uuid%} to "&rBuilder"
  133. set {rank.%arg-1's uuid%} to "&7[&aBuilder&7] &a"
  134. set {staffuser.%arg-1's uuid%} to true
  135. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  136. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBuilder" to player
  137. message "&7[&b&l*&7] Rank updated to &rBuilder" to arg-1
  138. make arg-1 execute "Riot:sidebar"
  139. if arg-2 is "Riot":
  140. set {displayrank.%arg-1's uuid%} to "&rRiot"
  141. set {rank.%arg-1's uuid%} to "&7[&b&lRiot&7] &b"
  142. set {staffuser.%arg-1's uuid%} to true
  143. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  144. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rRiot" to player
  145. message "&7[&b&l*&7] Rank updated to &rRiot" to arg-1
  146. make arg-1 execute "Riot:sidebar"
  147. if arg-2 is "medic":
  148. set {displayrank.%arg-1's uuid%} to "&rMedic"
  149. set {rank.%arg-1's uuid%} to "&7[&9Medic&7] &9"
  150. set {staffuser.%arg-1's uuid%} to true
  151. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  152. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rMedic" to player
  153. message "&7[&b&l*&7] Rank updated to &rMedic" to arg-1
  154. make arg-1 execute "Riot:sidebar"
  155. if arg-2 is "amethyst":
  156. set {displayrank.%arg-1's uuid%} to "&rAmethyst"
  157. set {rank.%arg-1's uuid%} to "&7[&5Amethyst&7] &e"
  158. set {staffuser.%arg-1's uuid%} to true
  159. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  160. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rAmethyst" to player
  161. message "&7[&b&l*&7] Rank updated to &rAmethyst" to arg-1
  162. make arg-1 execute "Riot:sidebar"
  163. if arg-2 is "gold":
  164. set {displayrank.%arg-1's uuid%} to "&rGold"
  165. set {rank.%arg-1's uuid%} to "&7[&6Gold&7] &e"
  166. set {staffuser.%arg-1's uuid%} to true
  167. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  168. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rGold" to player
  169. message "&7[&b&l*&7] Rank updated to &rGold" to arg-1
  170. make arg-1 execute "Riot:sidebar"
  171. if arg-2 is "silver":
  172. set {displayrank.%arg-1's uuid%} to "&rSilver"
  173. set {rank.%arg-1's uuid%} to "&r&l"
  174. set {staffuser.%arg-1's uuid%} to true
  175. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  176. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rSilver" to player
  177. message "&7[&b&l*&7] Rank updated to &rSilver" to arg-1
  178. make arg-1 execute "Riot:sidebar"
  179. if arg-2 is "bronze":
  180. set {displayrank.%arg-1's uuid%} to "&rBronze"
  181. set {rank.%arg-1's uuid%} to "&7&l"
  182. set {staffuser.%arg-1's uuid%} to true
  183. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  184. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rBronze" to player
  185. message "&7[&b&l*&7] Rank updated to &rBronze" to arg-1
  186. make arg-1 execute "Riot:sidebar"
  187. if arg-2 is "user":
  188. set {displayrank.%arg-1's uuid%} to "&rNone"
  189. set {rank.%arg-1's uuid%} to "&7"
  190. set {staffuser.%arg-1's uuid%} to true
  191. set tab list name of arg-1 to "%{rank.%arg-1's uuid%}%%arg-1%"
  192. message "&7[&b&l*&7] Set rank of &r%arg-1% &7to &rUser" to player
  193. message "&7[&b&l*&7] Rank updated to &rUser" to arg-1
  194. make arg-1 execute "Riot:sidebar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement