70sOn7

Boosters

Jan 20th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. on join:
  2. if {booster} is set:
  3. send "&a[Booster] &l%{booster.buyer}% &ahas bought a &l%{booster}% &abooster!"
  4.  
  5. command /boosters:
  6. aliases: /booster
  7. trigger:
  8. open chest with 3 row named "&a&nGlobal Boosters" to player
  9. wait 1 tick
  10. 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"]
  11. 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"]
  12. 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"]
  13. 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"]
  14.  
  15.  
  16.  
  17. command /boosterbuy [<offlineplayer>] [<number>]:
  18. permission: booster.buy
  19. permission message: &cYou do not have the correct permission for this command!
  20. trigger:
  21. if {booster} is set:
  22. send "&a[Booster] A booster is already active!"
  23. stop
  24.  
  25. else:
  26. if arg-2 is "2":
  27. if arg 1's balance is more than or equal to 100000:
  28. subtract 100000 from arg 1's balance
  29. execute console command "/gamerule randomTickSpeed 150"
  30. broadcast "||&cGridBlock &8> &c%arg-1% has bought a 2x booster!||"
  31. set {booster.buyer} to "%arg-1%"
  32. stop
  33. else:
  34. send "&cYou Do Not Have Enough Money For This!"
  35. if arg-2 is "3":
  36. if arg 1's balance is more than or equal to 300000:
  37. subtract 300000 from arg 1's balance
  38. execute console command "/gamerule randomTickSpeed 225"
  39. broadcast "||&cGridBlock &8> &c%arg-1% has bought a 3x booster!||"
  40. set {booster.buyer} to "%arg-1%"
  41. stop
  42. else:
  43. send "&cYou Do Not Have Enough Money For This!"
Add Comment
Please, Sign In to add comment