NPC PvP

Discussion in 'Plugin Development' started by TechGuard, Nov 6, 2011.

Thread Status:
Not open for further replies.
  1. If the server properties for pvp are false, the entity damage event will not work for pvp. If you turn it to true it does work. Is there a way to use this when the server properties say pvp is false?
     
  2. Offline

    AbeJ

    Use a PlayerAnimationEvent, check for LEFT_CLICK_ENTITY, damage the NPC if the event was directed at them.
    That's sort of hacky, there must be a way to override the server PVP toggle.
     
  3. Offline

    Abrupt

    using that method, you would need to find out how much damage the item in the attacker's hand does.
     
Thread Status:
Not open for further replies.

Share This Page