Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {booster} is set:
- send "&a[Booster] &l%{booster.buyer}% &ahas bought a &l%{booster}% &abooster!"
- command /boosters:
- aliases: /booster
- trigger:
- open chest with 3 row named "&a&nGlobal Boosters" to player
- wait 1 tick
- format slot 10 of player with 2 emerald named "&a2x &7(100,000)" with lore "&7Right-click to buy!" to close then run [make player execute command "/boosterbuy %player% 2"]
- format slot 12 of player with 3 emerald named "&a3x &7(300,000)" with lore "&7Right-click to buy!" to close then run [make player execute command "/boosterbuy %player% 3"]
- format slot 14 of player with 4 emerald named "&a4x &7(500,000)" with lore "&7Right-click to buy!" to close then run [make player execute command "/boosterbuy %player% 4"]
- format slot 16 of player with 5 emerald named "&a5x &7(750,000)" with lore "&7Right-click to buy!" to close then run [make player execute command "/boosterbuy %player% 5"]
- command /boosterbuy [<offlineplayer>] [<number>]:
- permission: booster.buy
- permission message: &cYou do not have the correct permission for this command!
- trigger:
- if {booster} is set:
- send "&a[Booster] A booster is already active!"
- stop
- else:
- if arg-2 is "2":
- if arg 1's balance is more than or equal to 100000:
- subtract 100000 from arg 1's balance
- execute console command "/gamerule randomTickSpeed 150"
- broadcast "||&cGridBlock &8> &c%arg-1% has bought a 2x booster!||"
- set {booster.buyer} to "%arg-1%"
- stop
- else:
- send "&cYou Do Not Have Enough Money For This!"
- if arg-2 is "3":
- if arg 1's balance is more than or equal to 300000:
- subtract 300000 from arg 1's balance
- execute console command "/gamerule randomTickSpeed 225"
- broadcast "||&cGridBlock &8> &c%arg-1% has bought a 3x booster!||"
- set {booster.buyer} to "%arg-1%"
- stop
- else:
- send "&cYou Do Not Have Enough Money For This!"
Add Comment
Please, Sign In to add comment