Category: UHC
Suggested name: phead
Spigot/Skript Version: Paperspigot 1.8.8. Skript 2.2-dev36
What I want:
When people right click player heads while holding it in their inventories, I want it so it can not be placed at all on the ground or walls or anywhere. This is what I have currently but it is not working.
on rightclick holding player head:
if {hh} is true:
wait 1 tick
remove 1 player head from the player's inventory
apply regeneration 3 to the player for 5 seconds
apply speed 2 to the player for 10 seconds
on place of player head:
if {hh} is true:
cancel event
This still removes the head from the inventory and gives the effects but if you right click the ground to place the head, it'll place the head and consume it, ultimately making it infinite.
Ideas for commands: /phead
Ideas for permissions: phead.admin
When I'd like it by: Less then a day if possible.
Suggested name: phead
Spigot/Skript Version: Paperspigot 1.8.8. Skript 2.2-dev36
What I want:
When people right click player heads while holding it in their inventories, I want it so it can not be placed at all on the ground or walls or anywhere. This is what I have currently but it is not working.
on rightclick holding player head:
if {hh} is true:
wait 1 tick
remove 1 player head from the player's inventory
apply regeneration 3 to the player for 5 seconds
apply speed 2 to the player for 10 seconds
on place of player head:
if {hh} is true:
cancel event
This still removes the head from the inventory and gives the effects but if you right click the ground to place the head, it'll place the head and consume it, ultimately making it infinite.
Ideas for commands: /phead
Ideas for permissions: phead.admin
When I'd like it by: Less then a day if possible.