Class TownPreInvitePlayerEvent

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

public class TownPreInvitePlayerEvent extends CancellableTownyEvent
Cancellable event that gets fired before a resident is invited to a town.
Since:
0.96.7.12
  • Constructor Details

    • TownPreInvitePlayerEvent

      public TownPreInvitePlayerEvent(Invite invite)
  • Method Details

    • getInvite

      public Invite getInvite()
    • getInvitedResident

      public Resident getInvitedResident()
      Convenience method for getting the resident that was invited.
      Returns:
      The Resident that was invited.
    • getTown

      public Town getTown()
      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