Class SpongeAntiBotModeStateEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
com.lahuca.botsentry.api.event.sponge.SpongeAntiBotModeStateEvent
- All Implemented Interfaces:
AntiBotModeStateEvent
,BotSentryEvent
,org.spongepowered.api.event.Event
public class SpongeAntiBotModeStateEvent
extends org.spongepowered.api.event.impl.AbstractEvent
implements AntiBotModeStateEvent
Velocity event for the AntiBotModeState event.
Event is passed when AntiBot Mode changes it's enabled/disabled state.
-
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.api.event.cause.Cause
getCause()
boolean
Gives the enabling state of this event.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spongepowered.api.event.Event
getContext, getSource
-
Constructor Details
-
SpongeAntiBotModeStateEvent
public SpongeAntiBotModeStateEvent(boolean enabling)
-
-
Method Details
-
isEnabling
public boolean isEnabling()Gives the enabling state of this event.- Specified by:
isEnabling
in interfaceAntiBotModeStateEvent
- Returns:
- True: AntiBot Mode is enabling, false: AntiBot Mode is disabling.
-
getCause
public org.spongepowered.api.event.cause.Cause getCause()- Specified by:
getCause
in interfaceorg.spongepowered.api.event.Event
-