Class TownyFriendlyFireTestEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.TownyFriendlyFireTestEvent
public class TownyFriendlyFireTestEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownyFriendlyFireTestEvent
(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender, TownyWorld world) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Player
org.bukkit.entity.Player
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
getWorld()
boolean
isPVP()
void
setCancelledMessage
(String cancelledMessage) void
setPVP
(boolean pvp) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownyFriendlyFireTestEvent
public TownyFriendlyFireTestEvent(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender, TownyWorld world)
-
-
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
-
getAttacker
public org.bukkit.entity.Player getAttacker() -
getDefender
public org.bukkit.entity.Player getDefender() -
getWorld
-
isPVP
public boolean isPVP() -
setPVP
public void setPVP(boolean pvp) -
getCancelledMessage
-
setCancelledMessage
-