Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- if {speed.%attacker's uuid%} is true:
- apply speed 1 to the attacker for 5 seconds
- if {speed.%attacker's uuid%} is false:
- stop
- if {health.%attacker's uuid%} is true:
- heal the attacker by 3 hearts
- command /killeffects:
- permission: killeffects.shop
- trigger:
- open chest with 1 row named "&cKill Effect Shop" to player
- format slot 0 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 1 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 2 of player with feather named "&bSwiftness" with lore "&a300$" to close then run [execute console command "pex user %player% add killeffects.speed"]->[execute player command "killeffectspeed"]
- format slot 3 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 4 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 5 of player with apple named "&cHealth" with lore "&a300$" to close then run [execute console command "pex user %player% add killeffects.health"]->[execute player command "killeffecthealth"]
- format slot 6 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 7 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- format slot 8 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
- command /killeffectspeed:
- permission: killeffects.speed
- trigger:
- if {purchase.speed.%player's uuid%} is true:
- send "&aYou have selected the &bSwiftness&c kill effect."
- set {health.%player's uuid%} to false
- set {speed.%player's uuid%} to true
- execute console command "pex user %player% remove killeffect.speed"
- stop
- if player's balance is less than 299:
- send "&cYou need 300$ to purchase the &bSwiftness&c kill effect."
- execute console command "pex user %player% remove killeffect.speed"
- stop
- if player's balance is greater than 299:
- set {speed.%player's uuid%} to true
- set {purchase.speed.%player's uuid%} to true
- execute console command "eco take %player% 300"
- send "&cYou have purchased &bSwiftness&c kill effect for &a300$."
- execute console command "pex user %player% remove killeffect.speed"
- command /killeffecthealth:
- permission: killeffect.health
- trigger:
- if {purchase.health.%player's uuid%} is true:
- send "&aYou have selected the &cHealth&c kill effect."
- set {speed.%player's uuid%} to false
- set {health.%player's uuid%} to true
- execute console command "pex user %player% remove killeffect.health"
- stop
- if player's balance is less than 299:
- send "&cYou need 300$ to purchase the &cHealth&c kill effect."
- execute console command "pex user %player% remove killeffect.health"
- stop
- if player's balance is greater than 299:
- set {health.%player's uuid%} to true
- set {purchase.health.%player's uuid%} to true
- execute console command "eco take %player% 300"
- send "&cYou have purchased &cHealth&c kill effect for &a300$."
- set {speed.%player's uuid%} to false
- execute console command "pex user %player% remove killeffect.health"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement