Class CommandTaxEvent
java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.CommandTaxEvent
- All Implemented Interfaces:
Cancellable
Called before a CommandTaxEvent is executed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a CommandTaxEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()Fetches the CustomTaxEvent involved in this event.static HandlerListFetches the HandlerList for this event.booleanvoidsetCancelled(boolean cancel) voidSets the CustomEvent that will be called.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CommandTaxEvent
Constructs a CommandTaxEvent.- Parameters:
event- CustomTaxEvent involved
-
-
Method Details
-
getEvent
Fetches the CustomTaxEvent involved in this event.- Returns:
- CustomTaxEvent
-
setEvent
Sets the CustomEvent that will be called.- Parameters:
event- CustomEvent to call- Throws:
IllegalArgumentException- if event is null
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
Fetches the HandlerList for this event.- Returns:
- HandlerList for this event
-