Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. on death of player:
  2. if {speed.%attacker's uuid%} is true:
  3. apply speed 1 to the attacker for 5 seconds
  4. if {health.%attacker's uuid%} is true:
  5. heal the attacker
  6. if {speed.%attacker's uuid%} is false:
  7. stop
  8.  
  9.  
  10. command /killeffects:
  11. permission: killeffects.shop
  12. trigger:
  13. open chest with 1 row named "&cKill Effect Shop" to player
  14. format slot 0 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  15. format slot 1 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  16. 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"]
  17. format slot 3 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  18. format slot 4 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  19. 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"]
  20. format slot 6 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  21. format slot 7 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  22. format slot 8 of player with black stained glass pane named "&8" to close then run [execute player command "killeffects"]
  23.  
  24. command /killeffectspeed:
  25. permission: killeffects.speed
  26. trigger:
  27. if {purchase.speed.%player's uuid%} is true:
  28. send "&aYou have selected the &bSwiftness&c kill effect."
  29. set {health.%player's uuid%} to false
  30. set {speed.%player's uuid%} to true
  31. execute console command "pex user %player% remove killeffect.speed"
  32. stop
  33. if player's balance is less than 299:
  34. send "&cYou need 300$ to purchase the &bSwiftness&c kill effect."
  35. execute console command "pex user %player% remove killeffect.speed"
  36. stop
  37. if player's balance is greater than 299:
  38. set {speed.%player's uuid%} to true
  39. set {purchase.speed.%player's uuid%} to true
  40. execute console command "eco take %player% 300"
  41. send "&cYou have purchased &bSwiftness&c kill effect for &a300$."
  42. execute console command "pex user %player% remove killeffect.speed"
  43.  
  44. command /killeffecthealth:
  45. permission: killeffect.health
  46. trigger:
  47. if {purchase.health.%player's uuid%} is true:
  48. send "&aYou have selected the &cHealth&c kill effect."
  49. set {speed.%player's uuid%} to false
  50. set {health.%player's uuid%} to true
  51. execute console command "pex user %player% remove killeffect.health"
  52. stop
  53. if player's balance is less than 299:
  54. send "&cYou need 300$ to purchase the &cHealth&c kill effect."
  55. execute console command "pex user %player% remove killeffect.health"
  56. stop
  57. if player's balance is greater than 299:
  58. set {health.%player's uuid%} to true
  59. set {purchase.health.%player's uuid%} to true
  60. execute console command "eco take %player% 300"
  61. send "&cYou have purchased &cHealth&c kill effect for &a300$."
  62. set {speed.%player's uuid%} to false
  63. execute console command "pex user %player% remove killeffect.health"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement