Advertisement
taktie0304

Untitled

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