Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /buy:
- trigger:
- open virtual chest inventory with 3 rows named "&cServer Store!" to player
- format gui slot 10 of player with paper named "&cRankup GUI" to run:
- make player execute command "rgui"
- send "&cOpening&7 Rankup GUI!"
- command /rgui:
- trigger:
- set {b} to "&cB>"
- set {c} to "&CC>"
- set {d} to "&cD>"
- set {e} to "&CE>"
- open virtual chest inventory with 3 rows named "&cRankup GUI" to player
- format gui slot 0 of player with paper named "&cB Rank" to run:
- if {coins.%player%} >= 500:
- send "&cSuccesfully ranked up to&7 B&c Rank!"
- subtract 500 from {coins.%player%}
- send "&cYou now have&7 (%{coins.%player%}%)&c Coins"
- broadcast "&7%player%&c Has ranked up to&7 B&C rank!"
- make console execute command "pex user %player% add b.rank"
- make player execute command "warp b"
- set {b} to true
- else if {coins.%player%} < 500:
- send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%/500)!"
- format gui slot 1 of player with paper named "&cC Rank" to run:
- if {coins.%player%} >= 1500:
- send "&cSuccesfully ranked up to C&C Rank!"
- subtract 1500 from {coins.%player%}
- send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
- broadcast "&7%player%&c Has ranked up to&7 B&C rank!"
- make console execute command "pex user %player% add c.rank"
- make player execute command "warp c"
- set {c} to true
- else if {coins.%player%} < 1500:
- send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/1500!"
- format gui slot 2 of player with paper named "&cD Rank" to run:
- if {coins.%player%} >= 3000:
- send "&cSuccesfully ranked up to D&C Rank!"
- subtract 3000 from {coins.%player%}
- send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
- broadcast "&7%player%&c Has ranked up to&7 D&C rank!"
- make console execute command "pex user %player% add d.rank"
- make player execute command "warp d"
- set {d} to true
- else if {coins.%player%} < 3000:
- send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/3000!"
- format gui slot 3 of player with paper named "&cE Rank" to run:
- if {coins.%player%} >= 5000:
- send "&cSuccesfully ranked up to E&C Rank!"
- subtract 5000 from {coins.%player%}
- send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
- broadcast "&7%player%&c Has ranked up to&7 E&C rank!"
- make console execute command "pex user %player% add e.rank"
- make player execute command "warp E"
- set {e} to true
- else if {coins.%player%} < 5000:
- send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/5000!"
- command /creset:
- trigger:
- send "&cSetting your&7 Coins to 0!"
- set {coins.%player%} to 0
- command /cset:
- trigger:
- send "&cOk"
- add 1000 to {coins.%player%}
- on first join:
- broadcast "&chey"
- set {a} to true
- chat:
- cancel event
- if {a} is true:
- broadcast "&cA>&7 %player% &b %message%"
- else if {b} is true:
- broadcast "&CB>&7 %player% &b %message%"
- else if {c} is true:
- broadcast "&cC>&7 %player% &b %message%"
- else if {d} is true:
- broadcast "&cD>&7 %player% &b %message%"
- else if {e} is true:
- broadcast "&cE>&7 %player% &b %message%"
Advertisement
Add Comment
Please, Sign In to add comment