Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /booster <players>:
- permission: core.booster.give
- trigger:
- give arg emerald named "&b2.0x Mcmmo Booster &7(Right-Click)" with lore "||&7Duration: &31x Hour||&7Right Click to apply a &32x &7Mcmmo boost"
- on right click:
- player is holding an emerald named "&b2.0x Mcmmo Booster &7(Right-Click)" with lore "||&7Duration: &31x Hour||&7Right Click to apply a &32x &7Mcmmo boost":
- set {_player} to player
- execute console command "/pex user %player% remove mcmmo.perks.xp.200percentboost"
- execute console command "/mangdelp %player% mcmmo.perks.xp.200percentboost"
- wait 1 second
- send "&8(&bBooster&8) &7Your booster is being activated, please wait" to player
- wait 5 seconds
- execute console command "/mangaddp %player% mcmmo.perks.xp.200percentboost"
- execute console command "/pex user %player% add mcmmo.perks.xp.200percentboost"
- send "&8(&bBooster&8) &7Your &b2x Booster &7has been applied for &b1 Hour" to player
- broadcast "&8(&bBooster&8) &7%player% has activated a &b2x Booster &7for &b1 Hour!"
- remove 1 emerald named "&b2.0x Mcmmo Booster &7(Right-Click)" with lore "||&7Duration: &31x Hour||&7Right Click to apply a &32x &7Mcmmo boost" from player
- launch burst firework colored aqua at player with duration 1
- wait 1 hour
- send "&8(&bBooster&8) &7Your &b2.0x Mcmmo Booster &7has run out" to player
- execute console command "/mangdelp %player% mcmmo.perks.xp.200percentboost"
- execute console command "/pex user %player% remove mcmmo.perks.xp.200percentboost"
- broadcast "&8(&bBooster&8) &b2x Booster &7that was activated for &b1 Hour has run out!"
Advertisement
Add Comment
Please, Sign In to add comment