Is there a leash/lead breaking event?

Discussion in 'CommandHelper' started by malon, Jul 30, 2017.

  1. malon

    malon Member

    I would like to make an unbreakable leash, is that possible?
  2. PseudoKnight

    PseudoKnight Well-Known Member

    I assume you mean for when the player moves too far from the entity and the leash breaks. There is a Bukkit event for that, PlayerUnleashEntityEvent, but for the UnleashReason.DISTANCE, you cannot cancel it.
  3. malon

    malon Member

    Even if I can't cancel it, is there any other way to make an unbreakable leash? Or extend the stretching distance to a huge amount?
  4. PseudoKnight

    PseudoKnight Well-Known Member

    It's hard-coded. You'd have to modify the server code itself.