Player Interact doesn't fire when clicking on a lead knot around a fencepost.
LadyCailinBot opened this issue ยท 4 comments
CMDHELPER-2739 - Reported by VergilPrime
This unfortunately means I can't cancel it, and can't protect ties animals using it.
Comment by jb_aero
In pretty much all cases, we receive the event and immediately send you. Practically the only exception is when world_changed from and to are the same. Next time bug Bukkit about events not firing.
Actually, there doesn't seem to be ANY support in Bukkit for leashes.
Comment by PseudoKnight
They just added the leash API in CB. As of right now it causes an error in CH every time a lead knot is right-clicked. Snippet:
6:04:32 PM CONSOLE: [SEVERE] Could not pass event PlayerInteractEntityEvent to CommandHelper v1599-6bd0724
6:04:32 PM CONSOLE: java.lang.IllegalArgumentException: No enum constant com.laytonsmith.abstraction.enums.MCEntityType.LEASH_HITCH
at java.lang.Enum.valueOf(Unknown Source)
at com.laytonsmith.abstraction.enums.EnumConvertor.getAbstractedEnum(EnumConvertor.java:66)
at com.laytonsmith.abstraction.bukkit.BukkitMCEntity.getType(BukkitMCEntity.java:122)
at com.laytonsmith.core.events.drivers.EntityEvents$player_interact_entity.matches(EntityEvents.java:567)
at com.laytonsmith.core.events.EventUtils.GetMatchingEvents(EventUtils.java:173)```
Comment by jb_aero
Ah, I saw the API was added but forgot it would mess up the enums. This will be my priority when I finish my exam in a few hours.