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"
- command "chatsettings prefix %arg 2% &8[&4&lC&8]&r"
- 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"
- command "chatsettings prefix %arg 2% &8[&c&lB&8]&r"
- 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"
- command "chatsettings prefix %arg 2% &8[&7&lS&8]&r"
- 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 299999:
- remove 300000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&6&lGold"
- command "pex user %arg 2% group set gold"
- command "chatsettings prefix %arg 2% &8[&6&lG&8]&r"
- 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 1799999:
- remove 1800000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&f&lPlatinum"
- command "pex user %arg 2% group set platinum"
- command "chatsettings prefix %arg 2% &8[&f&lP&8]&r"
- 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 9999999:
- remove 10000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&b&lDiamond"
- command "pex user %arg 2% group set diamond"
- command "chatsettings prefix %arg 2% &8[&b&lD&8]&r"
- 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 "&b&lDiamond":
- if {coin.%uuid of arg 2%} is more than 19999999:
- remove 20000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&d&lPlutonium"
- command "pex user %arg 2% group set plutonium"
- command "chatsettings prefix %arg 2% &8[&d&lP&8]&r"
- 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"
- command "chatsettings prefix %player% &8[&4&lC&8]&r"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement