Advertisement
twogz

Untitled

Jul 19th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.45 KB | None | 0 0
  1. on first join:
  2. set {rank::%uuid of player%} to "&aA"
  3. set {prestige::%uuid of player%} to 0
  4. set {rank.%player's uuid%} to "&7"
  5. set {shortrank.%player's uuid%} to "&rUser"
  6.  
  7. on join:
  8. apply potion of strength of tier 5 to the player for 999 days
  9.  
  10. command /rankup:
  11. trigger:
  12.  
  13. if {rank::%uuid of player%} is "&aA":
  14. if player's balance >= 100:
  15. set {rank::%uuid of player%} to "&bB"
  16. remove 100 from player's balance
  17. message "&c&lHaste &8» &c%player% &7has ranked up to &bB."
  18. stop
  19. else:
  20. message "&c&lHaste &8» &7You do not have enough money to advance."
  21.  
  22. if {rank::%uuid of player%} is "&bB":
  23. if player's balance >= 350:
  24. set {rank::%uuid of player%} to "&cC"
  25. remove 350 from player's balance
  26. message "&c&lHaste &8» &c%player% &7has ranked up to &cC."
  27. stop
  28. else:
  29. message "&c&lHaste &8» &7You do not have enough money to advance."
  30.  
  31. if {rank::%uuid of player%} is "&cC":
  32. if player's balance >= 500:
  33. set {rank::%uuid of player%} to "&dD"
  34. remove 500 from player's balance
  35. message "&c&lHaste &8» &c%player% &7has ranked up to &dD."
  36. stop
  37. else:
  38. message "&c&lHaste &8» &7You do not have enough money to advance."
  39.  
  40. if {rank::%uuid of player%} is "&dD":
  41. if player's balance >= 750:
  42. set {rank::%uuid of player%} to "&eE"
  43. remove 750 from player's balance
  44. message "&c&lHaste &8» &c%player% &7has ranked up to &eE."
  45. stop
  46. else:
  47. message "&c&lHaste &8» &7You do not have enough money to advance."
  48.  
  49. if {rank::%uuid of player%} is "&eE":
  50. if player's balance >= 1000:
  51. set {rank::%uuid of player%} to "&fF"
  52. remove 1000 from player's balance
  53. message "&c&lHaste &8» &c%player% &7has ranked up to &fF."
  54. stop
  55. else:
  56. message "&c&lHaste &8» &7You do not have enough money to advance."
  57.  
  58. if {rank::%uuid of player%} is "&fF":
  59. if player's balance >= 1250:
  60. set {rank::%uuid of player%} to "&aG"
  61. remove 1250 from player's balance
  62. message "&c&lHaste &8» &c%player% &7has ranked up to &aG."
  63. stop
  64. else:
  65. message "&c&lHaste &8» &7You do not have enough money to advance."
  66.  
  67. if {rank::%uuid of player%} is "&aG":
  68. if player's balance >= 1500:
  69. set {rank::%uuid of player%} to "&bH"
  70. remove 1500 from player's balance
  71. message "&c&lHaste &8» &c%player% &7has ranked up to &bH."
  72. stop
  73. else:
  74. message "&c&lHaste &8» &7You do not have enough money to advance."
  75.  
  76. if {rank::%uuid of player%} is "&bH":
  77. if player's balance >= 1750:
  78. set {rank::%uuid of player%} to "&cI"
  79. remove 1750 from player's balance
  80. message "&c&lHaste &8» &c%player% &7has ranked up to &cI."
  81. stop
  82. else:
  83. message "&c&lHaste &8» &7You do not have enough money to advance."
  84.  
  85. if {rank::%uuid of player%} is "&cI":
  86. if player's balance >= 2000:
  87. set {rank::%uuid of player%} to "&dJ"
  88. remove 2000 from player's balance
  89. message "&c&lHaste &8» &c%player% &7has ranked up to &dJ."
  90. stop
  91. else:
  92. message "&c&lHaste &8» &7You do not have enough money to advance."
  93.  
  94. if {rank::%uuid of player%} is "&dJ":
  95. if player's balance >= 2500:
  96. set {rank::%uuid of player%} to "&eK"
  97. remove 2500 from player's balance
  98. message "&c&lHaste &8» &c%player% &7has ranked up to &eK."
  99. stop
  100. else:
  101. message "&c&lHaste &8» &7You do not have enough money to advance."
  102.  
  103. if {rank::%uuid of player%} is "&eK":
  104. if player's balance >= 3000:
  105. set {rank::%uuid of player%} to "&fL"
  106. remove 3000 from player's balance
  107. message "&c&lHaste &8» &c%player% &7has ranked up to &fL."
  108. stop
  109. else:
  110. message "&c&lHaste &8» &7You do not have enough money to advance."
  111.  
  112. if {rank::%uuid of player%} is "&fL":
  113. if player's balance >= 3500:
  114. set {rank::%uuid of player%} to "&aM"
  115. remove 3500 from player's balance
  116. message "&c&lHaste &8» &c%player% &7has ranked up to &aM."
  117. stop
  118. else:
  119. message "&c&lHaste &8» &7You do not have enough money to advance."
  120.  
  121. if {rank::%uuid of player%} is "&aM":
  122. if player's balance >= 4000:
  123. set {rank::%uuid of player%} to "&bN"
  124. remove 4000 from player's balance
  125. message "&c&lHaste &8» &c%player% &7has ranked up to &bN."
  126. stop
  127. else:
  128. message "&c&lHaste &8» &7You do not have enough money to advance."
  129.  
  130. if {rank::%uuid of player%} is "&bN":
  131. if player's balance >= 5000:
  132. set {rank::%uuid of player%} to "&cO"
  133. remove 5000 from player's balance
  134. message "&c&lHaste &8» &c%player% &7has ranked up to &cO."
  135. stop
  136. else:
  137. message "&c&lHaste &8» &7You do not have enough money to advance."
  138.  
  139. if {rank::%uuid of player%} is "&cO":
  140. if player's balance >= 6000:
  141. set {rank::%uuid of player%} to "&dP"
  142. remove 6000 from player's balance
  143. message "&c&lHaste &8» &c%player% &7has ranked up to &dP."
  144. stop
  145. else:
  146. message "&c&lHaste &8» &7You do not have enough money to advance."
  147.  
  148. if {rank::%uuid of player%} is "&dP":
  149. if player's balance >= 7000:
  150. set {rank::%uuid of player%} to "&eQ"
  151. remove 7000 from player's balance
  152. message "&c&lHaste &8» &c%player% &7has ranked up to &eQ."
  153. stop
  154. else:
  155. message "&c&lHaste &8» &7You do not have enough money to advance."
  156.  
  157. if {rank::%uuid of player%} is "&eQ":
  158. if player's balance >= 8000:
  159. set {rank::%uuid of player%} to "&fR"
  160. remove 8000 from player's balance
  161. message "&c&lHaste &8» &c%player% &7has ranked up to &fR."
  162. stop
  163. else:
  164. message "&c&lHaste &8» &7You do not have enough money to advance."
  165.  
  166. if {rank::%uuid of player%} is "&fR":
  167. if player's balance >= 9000:
  168. set {rank::%uuid of player%} to "&aS"
  169. remove 9000 from player's balance
  170. message "&c&lHaste &8» &c%player% &7has ranked up to &aS."
  171. stop
  172. else:
  173. message "&c&lHaste &8» &7You do not have enough money to advance."
  174.  
  175. if {rank::%uuid of player%} is "&aS":
  176. if player's balance >= 10000:
  177. set {rank::%uuid of player%} to "&bT"
  178. remove 10000 from player's balance
  179. message "&c&lHaste &8» &c%player% &7has ranked up to &bT."
  180. stop
  181. else:
  182. message "&c&lHaste &8» &7You do not have enough money to advance."
  183.  
  184. if {rank::%uuid of player%} is "&bT":
  185. if player's balance >= 10750:
  186. set {rank::%uuid of player%} to "&cU"
  187. remove 10750 from player's balance
  188. message "&c&lHaste &8» &c%player% &7has ranked up to &cU."
  189. stop
  190. else:
  191. message "&c&lHaste &8» &7You do not have enough money to advance."
  192.  
  193. if {rank::%uuid of player%} is "&cU":
  194. if player's balance >= 11500:
  195. set {rank::%uuid of player%} to "&dV"
  196. remove 11500 from player's balance
  197. message "&c&lHaste &8» &c%player% &7has ranked up to &dV."
  198. stop
  199. else:
  200. message "&c&lHaste &8» &7You do not have enough money to advance."
  201.  
  202. if {rank::%uuid of player%} is "&dV":
  203. if player's balance >= 12250:
  204. set {rank::%uuid of player%} to "&eW"
  205. remove 12250 from player's balance
  206. message "&c&lHaste &8» &c%player% &7has ranked up to &eW."
  207. stop
  208. else:
  209. message "&c&lHaste &8» &7You do not have enough money to advance."
  210.  
  211. if {rank::%uuid of player%} is "&eW":
  212. if player's balance >= 13000:
  213. set {rank::%uuid of player%} to "&fX"
  214. remove 13000 from player's balance
  215. message "&c&lHaste &8» &c%player% &7has ranked up to &fX."
  216. stop
  217. else:
  218. message "&c&lHaste &8» &7You do not have enough money to advance."
  219.  
  220. if {rank::%uuid of player%} is "&fX":
  221. if player's balance >= 13750:
  222. set {rank::%uuid of player%} to "&aY"
  223. remove 13750 from player's balance
  224. message "&c&lHaste &8» &c%player% &7has ranked up to &aY."
  225. stop
  226. else:
  227. message "&c&lHaste &8» &7You do not have enough money to advance."
  228.  
  229. if {rank::%uuid of player%} is "&aY":
  230. if player's balance >= 14500:
  231. set {rank::%uuid of player%} to "&6&lZ"
  232. remove 14500 from player's balance
  233. message "&c&lHaste &8» &c%player% &7has ranked up to &6&lZ."
  234. message "&c&lHaste &8» &aCongratulations! You can now prestige by typing &b/prestige"
  235. stop
  236. else:
  237. message "&c&lHaste &8» &7You do not have enough money to advance."
  238.  
  239. command /reset:
  240. trigger:
  241. set {rank::%uuid of player%} to "&aA"
  242. set {prestige::%uuid of player%} to 0
  243.  
  244. on chat:
  245. cancel event
  246. broadcast "&8[&c%{prestige::%uuid of player%}%&8] %{rank.%player's uuid%}%&8[%{rank::%uuid of player%}%&8] &7%player% » %message%"
  247.  
  248. command /rank [<offline player>]:
  249. permission: server.rank
  250. trigger:
  251. if arg-1 is not set:
  252. send "&cInvalid usage!"
  253. else if arg-1 is set:
  254. open chest with 5 rows named "&8Rank Selection &8(&n%arg-1%)" to player
  255. 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
  256. format slot 22 of player with paper named "&bRanks" to be unstealable
  257. 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"]
  258. 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"]
  259. 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"]
  260. 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"]
  261. 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"]
  262. 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"]
  263.  
  264. command /¶rank [<offline player>] [<text>]:
  265. permission: haste.rank
  266. trigger:
  267. if arg-1 isn't set:
  268. message "&cIncorrect usage."
  269. if arg-1 is set:
  270. if arg-2 is "admin":
  271. if player has permission "server.rank":
  272. set {rank.%arg-1's uuid%} to "&c[ADMIN] &C"
  273. set {shortrank.%arg-1's uuid%} to "&rAdministrator"
  274. set tab list name of arg 1 to "&c[ADMIN] &C%player%"
  275. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
  276. send "&eYour server rank has been set to &bAdmin&e!" to arg 1
  277. if player doesn't have permission "server.manager":
  278. send "&cYou're not allowed to execute this command!"
  279. if arg-2 is "yt":
  280. if player has permission "server.rank":
  281. set {rank.%arg-1's uuid%} to "&6[YT] &6"
  282. set {shortrank.%arg-1's uuid%} to "&rYoutuber"
  283. set tab list name of arg 1 to "&6[YT] &6%player%"
  284. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bYoutuber &eprevious rank removed."
  285. send "&eYour server rank has been set to &bYoutuber&e!" to arg 1
  286. if player doesn't have permission "server.manager":
  287. send "&cYou're not allowed to execute this command!"
  288. if arg-2 is "mod":
  289. if player has permission "server.rank":
  290. set {rank.%arg-1's uuid%} to "&2[MOD] &2"
  291. set {shortrank.%arg-1's uuid%} to "&rModerator"
  292. set tab list name of arg 1 to "&2[MOD] &2%player%"
  293. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
  294. send "&eYour server rank has been set to &bMod&e!" to arg 1
  295. if player doesn't have permission "server.manager":
  296. send "&cYou're not allowed to execute this command!"
  297. if arg-2 is "helper":
  298. if player has permission "server.rank":
  299. set {rank.%arg-1's uuid%} to "&9[HELPER] &9"
  300. set {shortrank.%arg-1's uuid%} to "&rHelper"
  301. set tab list name of arg 1 to "&9[HELPER] &9%player%"
  302. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bHelper &eprevious rank removed."
  303. send "&eYour server rank has been set to &bHelper&e!" to arg 1
  304. if player doesn't have permission "server.manager":
  305. send "&cYou're not allowed to execute this command!"
  306. if arg-2 is "user":
  307. if player has permission "server.rank":
  308. set {rank.%arg-1's uuid%} to "&7"
  309. set {shortrank.%arg-1's uuid%} to "&rUser"
  310. set tab list name of arg 1 to "&7%player%"
  311. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
  312. send "&eYour server rank has been set to &bUser&e!" to arg 1
  313. if player doesn't have permission "server.manager":
  314. send "&cYou're not allowed to execute this command!"
  315. if arg-2 is "bt":
  316. if player has permission "server.rank":
  317. set {rank.%arg-1's uuid%} to "&3[BUILD TEAM] &3"
  318. set {shortrank.%arg-1's uuid%} to "&rBuild Team"
  319. set tab list name of arg 1 to "&3[BUILD TEAM] &3%player%"
  320. send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bBuild Team &eprevious rank removed."
  321. send "&eYour server rank has been set to &bBuild Team&e!" to arg 1
  322. if player doesn't have permission "server.manager":
  323. send "&cYou're not allowed to execute this command!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement