Advertisement
taktie0304

Untitled

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