Advertisement
therasmusgamer

Untitled

Mar 28th, 2019
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. command /rankup:
  2. trigger:
  3. if {Prison.Rank.%uuid of player%} is not set:
  4. set {Prison.Rank.%uuid of player%} to 0
  5. if {Prison.Prestige.%uuid of player%} is not set:
  6. set {Prison.Prestige.%uuid of player%} to 0
  7. if {Confirm.%player%} is not set:
  8. set {Confirm.%player%} to 0
  9. if {Prison.Prestige.%uuid of player%} is 0:
  10. if {Prison.Rank.%uuid of player%} is 0:
  11. if {Confirm.%player%} is 0:
  12. message "{@prefix} &7Rank &aB &7costs &e5k"
  13. message "{@prefix} &7Type &e/rankup &7again to confirm"
  14. set {Confirm.%player%} to 1
  15. else if {Confirm.%player%} >= 1:
  16. if player's balance >= 5000:
  17. message "{@prefix} &7You're now rank &aB"
  18. remove 5000 from player's balance
  19. set {Confirm.%player%} to 0
  20. set {Prison.Rank.%uuid of player%} to 1
  21. make console execute "/pex user %player% add essentials.warps.B"
  22. else:
  23. set {_Money.Missing} to 5000 - player's balance
  24. message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
  25. set {Confirm.%player%} to 0
  26. if {Prison.Rank.%uuid of player%} is 1:
  27. if {Confirm.%player%} is 0:
  28. message "{@prefix} &7Rank &aC &7costs &e10k"
  29. message "{@prefix} &7Type &e/rankup &7again to confirm"
  30. set {Confirm.%player%} to 1
  31. else if {Confirm.%player%} >= 1:
  32. if player's balance >= 10000:
  33. message "{@prefix} &7You're now rank &aC"
  34. remove 10000 from player's balance
  35. set {Confirm.%player%} to 0
  36. set {Prison.Rank.%uuid of player%} to 2
  37. make console execute "/pex user %player% add essentials.warps.C"
  38. else:
  39. set {_Money.Missing} to 10000 - player's balance
  40. message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
  41. set {Confirm.%player%} to 0
  42. if {Prison.Rank.%uuid of player%} is 2:
  43. if {Confirm.%player%} is 0:
  44. message "{@prefix} &7Rank &aD &7costs &e15k"
  45. message "{@prefix} &7Type &e/rankup &7again to confirm"
  46. set {Confirm.%player%} to 1
  47. else if {Confirm.%player%} >= 1:
  48. if player's balance >= 15000:
  49. message "{@prefix} &7You're now rank &aD"
  50. remove 15000 from player's balance
  51. set {Confirm.%player%} to 0
  52. set {Prison.Rank.%uuid of player%} to 3
  53. else:
  54. set {_Money.Missing} to 15000 - player's balance
  55. message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
  56. set {Confirm.%player%} to 0
  57. if {Prison.Rank.%uuid of player%} is 3:
  58. if {Confirm.%player%} is 0:
  59. message "{@prefix} &7Rank &aE &7costs &e20k"
  60. message "{@prefix} &7Type &e/rankup &7again to confirm"
  61. set {Confirm.%player%} to 1
  62. else if {Confirm.%player%} >= 1:
  63. if player's balance >= 20000:
  64. message "{@prefix} &7You're now rank &aE"
  65. remove 20000 from player's balance
  66. set {Confirm.%player%} to 0
  67. set {Prison.Rank.%uuid of player%} to 4
  68. else:
  69. set {_Money.Missing} to 20000 - player's balance
  70. message "{@prefix} &7You need &e%{_Money.Missing}% &7To rank up!"
  71. set {Confirm.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement