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.
See Also:
  • Field Summary

    Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent

    currentOrder
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpongeAntiBotModeStateEvent(boolean enabling)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.api.event.cause.Cause
     
    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 interface AntiBotModeStateEvent
      Returns:
      True: AntiBot Mode is enabling, false: AntiBot Mode is disabling.
    • getCause

      public org.spongepowered.api.event.cause.Cause getCause()
      Specified by:
      getCause in interface org.spongepowered.api.event.Event