Class ResidentModesInitializeEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.ResidentModesInitializeEvent

public class ResidentModesInitializeEvent extends org.bukkit.event.Event
  • Constructor Details

    • ResidentModesInitializeEvent

      public ResidentModesInitializeEvent()
  • Method Details

    • registerMode

      public void registerMode(@NotNull @NotNull AbstractResidentMode mode) throws TownyException
      Registers a new ResidentMode.
      Parameters:
      mode - The ResidentMode you want to register.
      Throws:
      TownyException - - If a mode with this name is already registered.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()