Class NationToggleEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.nation.toggle.NationToggleEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
NationToggleNeutralEvent
,NationToggleOpenEvent
,NationTogglePublicEvent
,NationToggleTaxPercentEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionNationToggleEvent
(org.bukkit.command.CommandSender sender, Nation nation, boolean admin) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@Nullable org.bukkit.entity.Player
@Nullable Resident
org.bukkit.command.CommandSender
boolean
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
-
NationToggleEvent
-
-
Method Details
-
getResident
-
getPlayer
@Nullable public @Nullable org.bukkit.entity.Player getPlayer() -
getSender
public org.bukkit.command.CommandSender getSender() -
getNation
-
isAdminAction
public boolean isAdminAction()- Returns:
- true if this toggling is because of an admin or console.
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-