Class ResidentModesInitializeEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.ResidentModesInitializeEvent
public class ResidentModesInitializeEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
void
registerMode
(@NotNull AbstractResidentMode mode) Registers a new ResidentMode.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ResidentModesInitializeEvent
public ResidentModesInitializeEvent()
-
-
Method Details
-
registerMode
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-