Advertisement
miguelmarleau

Untitled

Feb 15th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.65 KB | None | 0 0
  1. options:
  2. pr: &8&l(&3&l!&8&l) #Prefix for when something goes right
  3. pw: &8&l(&4&l!&8&l) #prefix for when something goes wrong (ex. not enough money)
  4. #[LETTER] rank = upgrade to [LETTER] ex: b rank = a -> b
  5. b rank: 100
  6. c rank: 100
  7. d rank: 100
  8. e rank: 100
  9. f rank: 100
  10. g rank: 100
  11. h rank: 100
  12. i rank: 100
  13. j rank: 100
  14. k rank: 100
  15. l rank: 100
  16. m rank: 100
  17. n rank: 100
  18. o rank: 100
  19. p rank: 100
  20. q rank: 100
  21. r rank: 100
  22. s rank: 100
  23. t rank: 100
  24. u rank: 100
  25. v rank: 100
  26. w rank: 100
  27. x rank: 100
  28. y rank: 100
  29. z rank: 100
  30. command /rankup:
  31. trigger:
  32. if {rank.%player%} is not set:
  33. if player's balance >= {@b rank}:
  34. send "{@pr} &7You have ranked up to &bB&7."
  35. set {rank.%player%} to "B"
  36. remove {@b rank} from player's balance
  37. stop
  38. else:
  39. send "{@pw} &7You don't have enough money to do this!"
  40. send "{@pw} &7You need &4$&c{@b rank}&7 to do this!"
  41. stop
  42. if {rank.%player%} is "b":
  43. if player's balance >= {@c rank}:
  44. send "{@pr} &7You have ranked up to &bC&7."
  45. set {rank.%player%} to "C"
  46. remove {@c rank} from player's balance
  47. stop
  48. else:
  49. send "{@pw} &7You don't have enough money to do this!"
  50. send "{@pw} &7You need &4$&c{@c rank}&7 to do this!"
  51. stop
  52. if {rank.%player%} is "c":
  53. if player's balance >= {@d rank}:
  54. send "{@pr} &7You have ranked up to &bD&7."
  55. set {rank.%player%} to "D"
  56. remove {@d rank} from player's balance
  57. stop
  58. else:
  59. send "{@pw} &7You don't have enough money to do this!"
  60. send "{@pw} &7You need &4$&c{@d rank}&7 to do this!"
  61. stop
  62. if {rank.%player%} is "d":
  63. if player's balance >= {@e rank}:
  64. send "{@pr} &7You have ranked up to &bE&7."
  65. set {rank.%player%} to "E"
  66. remove {@e rank} from player's balance
  67. stop
  68. else:
  69. send "{@pw} &7You don't have enough money to do this!"
  70. send "{@pw} &7You need &4$&c{@e rank}&7 to do this!"
  71. stop
  72. if {rank.%player%} is "e":
  73. if player's balance >= {@f rank}:
  74. send "{@pr} &7You have ranked up to &bF&7."
  75. set {rank.%player%} to "F"
  76. remove {@f rank} from player's balance
  77. stop
  78. else:
  79. send "{@pw} &7You don't have enough money to do this!"
  80. send "{@pw} &7You need &4$&c{@f rank}&7 to do this!"
  81. stop
  82. if {rank.%player%} is "f":
  83. if player's balance >= {@g rank}:
  84. send "{@pr} &7You have ranked up to &bG&7."
  85. set {rank.%player%} to "G"
  86. remove {@g rank} from player's balance
  87. stop
  88. else:
  89. send "{@pw} &7You don't have enough money to do this!"
  90. send "{@pw} &7You need &4$&c{@g rank}&7 to do this!"
  91. stop
  92. if {rank.%player%} is "g":
  93. if player's balance >= {@h rank}:
  94. send "{@pr} &7You have ranked up to &bH&7."
  95. set {rank.%player%} to "H"
  96. remove {@h rank} from player's balance
  97. stop
  98. else:
  99. send "{@pw} &7You don't have enough money to do this!"
  100. send "{@pw} &7You need &4$&c{@h rank}&7 to do this!"
  101. stop
  102. if {rank.%player%} is "h":
  103. if player's balance >= {@i rank}:
  104. send "{@pr} &7You have ranked up to &bI&7."
  105. set {rank.%player%} to "I"
  106. remove {@i rank} from player's balance
  107. stop
  108. else:
  109. send "{@pw} &7You don't have enough money to do this!"
  110. send "{@pw} &7You need &4$&c{@i rank}&7 to do this!"
  111. stop
  112. if {rank.%player%} is "I":
  113. if player's balance >= {@j rank}:
  114. send "{@pr} &7You have ranked up to &bJ&7."
  115. set {rank.%player%} to "J"
  116. remove {@j rank} from player's balance
  117. stop
  118. else:
  119. send "{@pw} &7You don't have enough money to do this!"
  120. send "{@pw} &7You need &4$&c{@j rank}&7 to do this!"
  121. stop
  122. if {rank.%player%} is "J":
  123. if player's balance >= {@k rank}:
  124. send "{@pr} &7You have ranked up to &bK&7."
  125. set {rank.%player%} to "K"
  126. remove {@k rank} from player's balance
  127. stop
  128. else:
  129. send "{@pw} &7You don't have enough money to do this!"
  130. send "{@pw} &7You need &4$&c{@k rank}&7 to do this!"
  131. stop
  132. if {rank.%player%} is "K":
  133. if player's balance >= {@l rank}:
  134. send "{@pr} &7You have ranked up to &bL&7."
  135. set {rank.%player%} to "L"
  136. remove {@l rank} from player's balance
  137. stop
  138. else:
  139. send "{@pw} &7You don't have enough money to do this!"
  140. send "{@pw} &7You need &4$&c{@l rank}&7 to do this!"
  141. stop
  142. if {rank.%player%} is "L":
  143. if player's balance >= {@m rank}:
  144. send "{@pr} &7You have ranked up to &bM&7."
  145. set {rank.%player%} to "M"
  146. remove {@m rank} from player's balance
  147. stop
  148. else:
  149. send "{@pw} &7You don't have enough money to do this!"
  150. send "{@pw} &7You need &4$&c{@m rank}&7 to do this!"
  151. stop
  152. if {rank.%player%} is "m":
  153. if player's balance >= {@n rank}:
  154. send "{@pr} &7You have ranked up to &bJ&7."
  155. set {rank.%player%} to "N"
  156. remove {@n rank} from player's balance
  157. stop
  158. else:
  159. send "{@pw} &7You don't have enough money to do this!"
  160. send "{@pw} &7You need &4$&c{@n rank}&7 to do this!"
  161. stop
  162. if {rank.%player%} is "n":
  163. if player's balance >= {@o rank}:
  164. send "{@pr} &7You have ranked up to &bO&7."
  165. set {rank.%player%} to "O"
  166. remove {@o rank} from player's balance
  167. stop
  168. else:
  169. send "{@pw} &7You don't have enough money to do this!"
  170. send "{@pw} &7You need &4$&c{@o rank}&7 to do this!"
  171. stop
  172. if {rank.%player%} is "O":
  173. if player's balance >= {@p rank}:
  174. send "{@pr} &7You have ranked up to &bP&7."
  175. set {rank.%player%} to "P"
  176. remove {@p rank} from player's balance
  177. stop
  178. else:
  179. send "{@pw} &7You don't have enough money to do this!"
  180. send "{@pw} &7You need &4$&c{@p rank}&7 to do this!"
  181. stop
  182. if {rank.%player%} is "p":
  183. if player's balance >= {@q rank}:
  184. send "{@pr} &7You have ranked up to &bQ&7."
  185. set {rank.%player%} to "Q"
  186. remove {@q rank} from player's balance
  187. stop
  188. else:
  189. send "{@pw} &7You don't have enough money to do this!"
  190. send "{@pw} &7You need &4$&c{@q rank}&7 to do this!"
  191. stop
  192. if {rank.%player%} is "Q":
  193. if player's balance >= {@r rank}:
  194. send "{@pr} &7You have ranked up to &bR&7."
  195. set {rank.%player%} to "R"
  196. remove {@r rank} from player's balance
  197. stop
  198. else:
  199. send "{@pw} &7You don't have enough money to do this!"
  200. send "{@pw} &7You need &4$&c{@r rank}&7 to do this!"
  201. stop
  202. if {rank.%player%} is "R":
  203. if player's balance >= {@s rank}:
  204. send "{@pr} &7You have ranked up to &bS&7."
  205. set {rank.%player%} to "S"
  206. remove {@s rank} from player's balance
  207. stop
  208. else:
  209. send "{@pw} &7You don't have enough money to do this!"
  210. send "{@pw} &7You need &4$&c{@s rank}&7 to do this!"
  211. stop
  212. if {rank.%player%} is "S":
  213. if player's balance >= {@t rank}:
  214. send "{@pr} &7You have ranked up to &bT&7."
  215. set {rank.%player%} to "T"
  216. remove {@t rank} from player's balance
  217. stop
  218. else:
  219. send "{@pw} &7You don't have enough money to do this!"
  220. send "{@pw} &7You need &4$&c{@t rank}&7 to do this!"
  221. stop
  222. if {rank.%player%} is "T":
  223. if player's balance >= {@u rank}:
  224. send "{@pr} &7You have ranked up to &bU&7."
  225. set {rank.%player%} to "U"
  226. remove {@u rank} from player's balance
  227. stop
  228. else:
  229. send "{@pw} &7You don't have enough money to do this!"
  230. send "{@pw} &7You need &4$&c{@u rank}&7 to do this!"
  231. stop
  232. if {rank.%player%} is "U":
  233. if player's balance >= {@t rank}:
  234. send "{@pr} &7You have ranked up to &bV&7."
  235. set {rank.%player%} to "V"
  236. remove {@v rank} from player's balance
  237. stop
  238. else:
  239. send "{@pw} &7You don't have enough money to do this!"
  240. send "{@pw} &7You need &4$&c{@v rank}&7 to do this!"
  241. stop
  242. if {rank.%player%} is "V":
  243. if player's balance >= {@w rank}:
  244. send "{@pr} &7You have ranked up to &bW&7."
  245. set {rank.%player%} to "W"
  246. remove {@w rank} from player's balance
  247. stop
  248. else:
  249. send "{@pw} &7You don't have enough money to do this!"
  250. send "{@pw} &7You need &4$&c{@w rank}&7 to do this!"
  251. stop
  252. if {rank.%player%} is "W":
  253. if player's balance >= {@x rank}:
  254. send "{@pr} &7You have ranked up to &bX&7."
  255. set {rank.%player%} to "X"
  256. remove {@x rank} from player's balance
  257. stop
  258. else:
  259. send "{@pw} &7You don't have enough money to do this!"
  260. send "{@pw} &7You need &4$&c{@x rank}&7 to do this!"
  261. stop
  262. if {rank.%player%} is "x":
  263. if player's balance >= {@y rank}:
  264. send "{@pr} &7You have ranked up to &bY&7."
  265. set {rank.%player%} to "Y"
  266. remove {@y rank} from player's balance
  267. stop
  268. else:
  269. send "{@pw} &7You don't have enough money to do this!"
  270. send "{@pw} &7You need &4$&c{@y rank}&7 to do this!"
  271. stop
  272. if {rank.%player%} is "Y":
  273. if player's balance >= {@z rank}:
  274. send "{@pr} &7You have ranked up to &bZ&7."
  275. set {rank.%player%} to "Z"
  276. remove {@z rank} from player's balance
  277. stop
  278. else:
  279. send "{@pw} &7You don't have enough money to do this!"
  280. send "{@pw} &7You need &4$&c{@z rank}&7 to do this!"
  281. stop
  282. if {rank.%player%} is "Z":
  283. send "{@r} &7Failed while executing, you are at the maximum rank!"
  284. stop
  285. command /rank:
  286. trigger:
  287. send "You are ""%{rank.%player%}%"""
  288. command /setrank [<offlineplayer>] [<text>]:
  289. permission: *
  290. permission message: {@pw} &7You don't have permission to execute this command!
  291. trigger:
  292. if arg 2 is set:
  293. if arg 2 is not "reset":
  294. set {rank.%arg 1%} to arg 2
  295. send "{@pr} &7You have set %arg 1%'s a-z rank to %arg 2%."
  296. send "{@pr} &7Your alphebetical rank was set to %arg 2% by %player's display name%&7." to arg 1
  297. else:
  298. delete {rank.%arg 1%}
  299. send "{@pr} &7You have reset %arg 1%'s a-z rank."
  300. send "{@pr} &7Your alphebetical rank was reset by %player's display name%&7." to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement