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

public abstract class NationToggleEvent extends CancellableTownyEvent
  • Constructor Details

    • NationToggleEvent

      public NationToggleEvent(org.bukkit.command.CommandSender sender, Nation nation, boolean admin)
  • Method Details

    • getResident

      @Nullable public @Nullable Resident getResident()
    • getPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getPlayer()
    • getSender

      public org.bukkit.command.CommandSender getSender()
    • getNation

      public Nation 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 class org.bukkit.event.Event