Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {oneheal} = false
- command /oneheal <text>:
- permission: skript.op
- usage : /oneheal <enable/disable>
- trigger:
- if arg 1 is "enable" or "true" or "on":
- {oneheal} is true:
- message "&7One Heal is already &aenabled" to command sender
- {oneheal} is false:
- set {oneheal} to true
- broadcast "&8[&bServerName&8] &7One Heal &aEnabled"
- give a golden hoe to all players
- if arg 1 is "disable" or "false" or "off":
- {oneheal} is false:
- message "&7One Heal is already &cdisabled" to command sender
- {oneheal} is true:
- set {oneheal} to false
- broadcast "&8[&bServerName&8] &7One Heal &cDisabled"
- on rightclick with a golden hoe:
- {oneheal} is true
- heal player
- remove golden hoe from the inventory of the player
- message "&8[&bServerName&8] &7You used your One Heal!"
- on craft of golden hoe:
- {oneheal} is true
- cancel event
- message "&8[&bServerName&8] &7Can't craft that! Only one heal!" to player
Advertisement
Add Comment
Please, Sign In to add comment