Class WildernessPVPTestEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.WildernessPVPTestEvent

public class WildernessPVPTestEvent extends org.bukkit.event.Event
An event thrown when Towny will determine the PVP status of the wilderness surrounding town-owned land.
Author:
LlmDl
  • Constructor Details

    • WildernessPVPTestEvent

      public WildernessPVPTestEvent(TownyWorld world, boolean pvp)
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getWorld

      public TownyWorld getWorld()
      Returns:
      the TownyWorld in which the PVP test is occuring.
    • isPvp

      public boolean isPvp()
      Returns:
      whether PVP is on or off in the wilderness.
    • setPvp

      public void setPvp(boolean pvp)
      Sets the pvp status and outcome of the event.
      Parameters:
      pvp - whether the event will result in PVP being on or off in the wilderness.