Force an event to be true

Discussion in 'Plugin Development' started by LRFLEW, Jun 3, 2011.

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

    LRFLEW

    My plugin PvP Control, I deny the attacks to another player if one of them has pvp off for themselves. However, if the server.properties has pvp=false, even if both players have pvp on for themselves, the server denies the attack. How can I make my plugin Force the damage? event.setCanceled(false) doesn't do it.
     
  2. Offline

    imjake9

    AFAIK, you can't. In order for PvP to work, PvP must be set to "true" in the server.properties file. In theory, you could probably manually deal damage to other players, but what's the point? Just inform users that your plugin requires PvP to be on.
     
  3. Yeah, like imjake9 said just make sure PvP is set to true in the server properties, unless you want to handle damage dealt for every single possibility.
     
  4. Offline

    LRFLEW

Thread Status:
Not open for further replies.

Share This Page