Advertisement
taktie0304

Untitled

Jun 1st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. command /rank set [<text>] [<offline player>]:
  2. permission: skript.rank.set
  3. trigger:
  4. if arg 1 is "c":
  5. set {rank.%uuid of arg 2%} to "&4&lCopper"
  6. command "pex user %arg 2% group set copper"
  7. if arg 1 is "b":
  8. if {rank.%uuid of arg 2%} is "&4&lCopper":
  9. if {coin.%uuid of arg 2%} is more than 9999:
  10. remove 10000 from {coin.%uuid of arg 2%}
  11. set {rank.%uuid of arg 2%} to "&c&lBronze"
  12. command "pex user %arg 2% group set bronze"
  13. broadcast "&a%arg 2%さんが&c&lBronze&aにランクアップしました!"
  14. else:
  15. send "&cお金が足りません" to arg 2
  16. else:
  17. send "&cランクが足りません" to arg 2
  18. if arg 1 is "s":
  19. if {rank.%uuid of arg 2%} is "&c&lBronze":
  20. if {coin.%uuid of arg 2%} is more than 49999:
  21. remove 50000 from {coin.%uuid of arg 2%}
  22. set {rank.%uuid of arg 2%} to "&7&lSilver"
  23. command "pex user %arg 2% group set silver"
  24. broadcast "&a%arg 2%さんが&7&lSilver&aにランクアップしました!"
  25. else:
  26. send "&cお金が足りません" to arg 2
  27. else:
  28. send "&cランクが足りません" to arg 2
  29. if arg 1 is "g":
  30. if {rank.%uuid of arg 2%} is "&7&lSilver":
  31. if {coin.%uuid of arg 2%} is more than 249999:
  32. remove 250000 from {coin.%uuid of arg 2%}
  33. set {rank.%uuid of arg 2%} to "&6&lGold"
  34. command "pex user %arg 2% group set gold"
  35. broadcast "&a%arg 2%さんが&6&lGold&aにランクアップしました!"
  36. else:
  37. send "&cお金が足りません" to arg 2
  38. else:
  39. send "&cランクが足りません" to arg 2
  40. if arg 1 is "pla":
  41. if {rank.%uuid of arg 2%} is "&6&lGold":
  42. if {coin.%uuid of arg 2%} is more than 1249999:
  43. remove 1250000 from {coin.%uuid of arg 2%}
  44. set {rank.%uuid of arg 2%} to "&f&lPlatinum"
  45. command "pex user %arg 2% group set platinum"
  46. broadcast "&a%arg 2%さんが&f&lPlatinum&aにランクアップしました!"
  47. else:
  48. send "&cお金が足りません" to arg 2
  49. else:
  50. send "&cランクが足りません" to arg 2
  51. if arg 1 is "d":
  52. if {rank.%uuid of arg 2%} is "&f&lPlatinum":
  53. if {coin.%uuid of arg 2%} is more than 4999999:
  54. remove 5000000 from {coin.%uuid of arg 2%}
  55. set {rank.%uuid of arg 2%} to "&b&lDiamond"
  56. command "pex user %arg 2% group set diamond"
  57. broadcast "&a%arg 2%さんが&b&lDiamond&aにランクアップしました!"
  58. else:
  59. send "&cお金が足りません" to arg 2
  60. else:
  61. send "&cランクが足りません" to arg 2
  62. if arg 1 is "plu":
  63. if {rank.%uuid of arg 2%} is "&f&lPlatinum":
  64. if {coin.%uuid of arg 2%} is more than 9999999:
  65. remove 10000000 from {coin.%uuid of arg 2%}
  66. set {rank.%uuid of arg 2%} to "&d&lPlutonium"
  67. command "pex user %arg 2% group set plutonium"
  68. broadcast "&a%arg 2%さんが&d&lPlutonium&aにランクアップしました!"
  69. else:
  70. send "&cお金が足りません" to arg 2
  71. else:
  72. send "&cランクが足りません" to arg 2
  73.  
  74. on first join:
  75. set {rank.%uuid of player%} to "&4&lCopper"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement