Class TownAddResidentRankEvent

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

public class TownAddResidentRankEvent extends CancellableTownyEvent
Author:
Artuto Fired after a Resident has been added to a Town rank.
  • Constructor Details

    • TownAddResidentRankEvent

      public TownAddResidentRankEvent(Resident resident, String rank, Town town)
  • Method Details

    • getResident

      public Resident getResident()
      Returns:
      the resident that got the rank
    • getRank

      public String getRank()
      Returns:
      the added rank
    • getTown

      public Town getTown()
      Returns:
      the town this resident is part of
    • 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