Help ... Stoping leashing of players horse

Discussion in 'Plugin Development' started by BPOtacon, Sep 18, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    BPOtacon

    Can someone please show me how to stop a player from leashing a horse that has a passanger.
     
  2. Offline

    metalhedd

    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.
     
  3. Offline

    BPOtacon

    how would i cancel that event
     
  4. Offline

    metalhedd

    event.setCancelled(true);
     
  5. Offline

    BPOtacon

    oh ok thank you
     
  6. Offline

    toothplck1 Retired Staff

Thread Status:
Not open for further replies.

Share This Page