Class NationToggleOpenEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.nation.toggle.NationToggleEvent
com.palmergames.bukkit.towny.event.nation.toggle.NationToggleOpenEvent
- 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
ConstructorDescriptionNationToggleOpenEvent
(org.bukkit.command.CommandSender sender, Nation nation, boolean admin, boolean newState) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
Methods inherited from class com.palmergames.bukkit.towny.event.nation.toggle.NationToggleEvent
getNation, getPlayer, getResident, getSender, 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
-
NationToggleOpenEvent
public NationToggleOpenEvent(org.bukkit.command.CommandSender sender, Nation nation, 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.
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Overrides:
getHandlers
in classNationToggleEvent
-