Discussion in 'Plugin Development' started by BPOtacon, Sep 18, 2013.
Can someone please show me how to stop a player from leashing a horse that has a passanger.
listen for PlayerInteractEntityEvent, check if the ItemInHand is a lead, and the target entity is a horse, if it IS a horse, check if it has a passenger. if so, cancel the event.
how would i cancel that event
oh ok thank you
Or you know... use this: PlayerLeashEntityEvent
Separate names with a comma.