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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
WildernessPVPTestEvent
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
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.
-