Class SpigotSlowBotDisconnectEvent

    • Method Detail

      • setCancelled

        public void setCancelled​(boolean cancelled)
        Sets the cancelled state of the event. The last listener that changes this state will be the one that will affect the event.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - the state to set
      • isCancelled

        public boolean isCancelled()
        Retrieves the cancelled state of the event. Does not have the be the final state.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        the state
      • getIP

        public java.lang.String getIP()
        Gives the IP that will be blacklisted or kicked.
        Specified by:
        getIP in interface SlowBotDisconnectEvent
        Returns:
        the ip where this event has effect on
      • isBlacklisting

        public boolean isBlacklisting()
        Gives if the IP is supposed to be blacklisted or only be kicked.
        Specified by:
        isBlacklisting in interface SlowBotDisconnectEvent
        Returns:
        true if the IP will be blacklisted, false if the IP will be kicked only.
      • getHandlers

        public org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()