Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rank set [<text>] [<offline player>]:
- permission: skript.rank.set
- trigger:
- if arg 1 is "c":
- set {rank.%uuid of arg 2%} to "&4&lCopper"
- command "pex user %arg 2% group set copper"
- if arg 1 is "b":
- if {rank.%uuid of arg 2%} is "&4&lCopper":
- if {coin.%uuid of arg 2%} is more than 9999:
- remove 10000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&c&lBronze"
- command "pex user %arg 2% group set bronze"
- broadcast "&a%arg 2%さんが&c&lBronze&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- if arg 1 is "s":
- if {rank.%uuid of arg 2%} is "&c&lBronze":
- if {coin.%uuid of arg 2%} is more than 49999:
- remove 50000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&7&lSilver"
- command "pex user %arg 2% group set silver"
- broadcast "&a%arg 2%さんが&7&lSilver&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- if arg 1 is "g":
- if {rank.%uuid of arg 2%} is "&7&lSilver":
- if {coin.%uuid of arg 2%} is more than 249999:
- remove 250000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&6&lGold"
- command "pex user %arg 2% group set gold"
- broadcast "&a%arg 2%さんが&6&lGold&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- if arg 1 is "pla":
- if {rank.%uuid of arg 2%} is "&6&lGold":
- if {coin.%uuid of arg 2%} is more than 1249999:
- remove 1250000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&f&lPlatinum"
- command "pex user %arg 2% group set platinum"
- broadcast "&a%arg 2%さんが&f&lPlatinum&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- if arg 1 is "d":
- if {rank.%uuid of arg 2%} is "&f&lPlatinum":
- if {coin.%uuid of arg 2%} is more than 4999999:
- remove 5000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&b&lDiamond"
- command "pex user %arg 2% group set diamond"
- broadcast "&a%arg 2%さんが&b&lDiamond&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- if arg 1 is "plu":
- if {rank.%uuid of arg 2%} is "&f&lPlatinum":
- if {coin.%uuid of arg 2%} is more than 9999999:
- remove 10000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&d&lPlutonium"
- command "pex user %arg 2% group set plutonium"
- broadcast "&a%arg 2%さんが&d&lPlutonium&aにランクアップしました!"
- else:
- send "&cお金が足りません" to arg 2
- else:
- send "&cランクが足りません" to arg 2
- on first join:
- set {rank.%uuid of player%} to "&4&lCopper"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement