Guest User

One Heal

a guest
Dec 29th, 2014
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. variables:
  2. {oneheal} = false
  3.  
  4. command /oneheal <text>:
  5. permission: skript.op
  6. usage : /oneheal <enable/disable>
  7. trigger:
  8. if arg 1 is "enable" or "true" or "on":
  9. {oneheal} is true:
  10. message "&7One Heal is already &aenabled" to command sender
  11. {oneheal} is false:
  12. set {oneheal} to true
  13. broadcast "&8[&bServerName&8] &7One Heal &aEnabled"
  14. give a golden hoe to all players
  15.  
  16. if arg 1 is "disable" or "false" or "off":
  17. {oneheal} is false:
  18. message "&7One Heal is already &cdisabled" to command sender
  19. {oneheal} is true:
  20. set {oneheal} to false
  21. broadcast "&8[&bServerName&8] &7One Heal &cDisabled"
  22.  
  23.  
  24.  
  25. on rightclick with a golden hoe:
  26. {oneheal} is true
  27. heal player
  28. remove golden hoe from the inventory of the player
  29. message "&8[&bServerName&8] &7You used your One Heal!"
  30.  
  31. on craft of golden hoe:
  32. {oneheal} is true
  33. cancel event
  34. message "&8[&bServerName&8] &7Can't craft that! Only one heal!" to player
Advertisement
Add Comment
Please, Sign In to add comment