Class NationPreInviteTownEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.nation.NationPreInviteTownEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class NationPreInviteTownEvent extends CancellableTownyEvent
Cancellable event that gets fired before a town is invited to a nation.
Since:
0.100.2.14
  • Constructor Details

    • NationPreInviteTownEvent

      public NationPreInviteTownEvent(Invite invite)
  • Method Details

    • getInvite

      public Invite getInvite()
    • getInvitedTown

      public Town getInvitedTown()
      Convenience method for getting the town that was invited.
      Returns:
      The Town that was invited.
    • getNation

      public Nation getNation()
      Convenience method for getting the town that sent the invite.
      Returns:
      The Town that the resident is invited to join.
    • 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