Override PvP Cancelation

Discussion in 'Plugin Development' started by cadika_orade, Dec 8, 2012.

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

    cadika_orade

    I am looking to code a small plugin to patch a longstanding issue on my server. For quite some time now, nobody on my server has been able to PvP. The server properties and all possibly related plugins are configured correctly. Most curiously, regular users are capable of dealing PvP damage to Moderators, but I digress.

    I need a means by which I can cancel the cancellation of PvP, essentially overriding any plugin that may try to block PvP, with the only exception being player with godmode (Moderators).

    Is this possible?
     
  2. Offline

    Tirelessly

    Yes, look into event priority and event.setCancelled(boolean cancelled)
     
Thread Status:
Not open for further replies.

Share This Page