Package net.fateuhc.plugin.api.events
Class ScenarioToggleEvent
java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.ScenarioToggleEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class ScenarioToggleEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Called in EditScenariosMenu
Is called when a scenario is toggled on/off
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListGet the handlers list.org.bukkit.event.HandlerListGet the handlers list.org.bukkit.entity.PlayerGet the player who toggled the scenario.Get the scenario data that was triggeredbooleanCheck if the event has been cancelled or not.booleanIs the scenario getting enabled?voidsetCancelled(boolean b) Change if the event is cancelled or not.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ScenarioToggleEvent
public ScenarioToggleEvent()
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Get the handlers list.- Specified by:
getHandlersin classorg.bukkit.event.Event- Returns:
HandlerList
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Get the handlers list.- Returns:
HandlerList
-
isCancelled
public boolean isCancelled()Check if the event has been cancelled or not.- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
Boolean
-
setCancelled
public void setCancelled(boolean b) Change if the event is cancelled or not.- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
b- Should the event be cancelled?
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who toggled the scenario.- Returns:
Playerthat toggled the scenario.
-
getScenario
Get the scenario data that was triggered- Returns:
ScenarioDataof the scenario.
-
isToEnable
public boolean isToEnable()Is the scenario getting enabled?- Returns:
Boolean
-