Class TownTogglePVPEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.toggle.TownToggleEvent
com.palmergames.bukkit.towny.event.town.toggle.TownTogglePVPEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownTogglePVPEvent
(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState) -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.town.toggle.TownToggleEvent
getHandlerList, getHandlers, getPlayer, getResident, getSender, getTown, isAdminAction
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownTogglePVPEvent
public TownTogglePVPEvent(org.bukkit.command.CommandSender sender, Town town, boolean admin, boolean newState)
-
-
Method Details
-
getCurrentState
public boolean getCurrentState()- Returns:
- the current toggle's state.
-
getFutureState
public boolean getFutureState()- Returns:
- the future state of the toggle after the event.
-