Package com.lahuca.botsentry.api.event
Interface SlowBotDisconnectEvent
-
- All Superinterfaces:
BotSentryEvent
,Cancellable
- All Known Implementing Classes:
BungeeSlowBotDisconnectEvent
,SpigotSlowBotDisconnectEvent
,SpongeSlowBotDisconnectEvent
,VelocitySlowBotDisconnectEvent
public interface SlowBotDisconnectEvent extends Cancellable, BotSentryEvent
Main event holder for the Slow Bot Disconnect Event. Event is passed when a detection method has detected a slow bot and is trying to kick or blacklist the bot. Cancelling this event will not blacklist or kick the player. Does not add the IP to the slowBots.json.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SlowBotDisconnectEvent.DetectionMethod
No in-depth information will be given per detection method to provide safety.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SlowBotDisconnectEvent.DetectionMethod
getDetectionMethod()
Gives the detection method that detected this slow bot.java.lang.String
getIP()
Gives the IP that will be blacklisted or kicked.boolean
isBlacklisting()
Gives if the IP is supposed to be blacklisted or only be kicked.-
Methods inherited from interface com.lahuca.botsentry.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
getIP
java.lang.String getIP()
Gives the IP that will be blacklisted or kicked.- Returns:
- the ip where this event has effect on
-
isBlacklisting
boolean isBlacklisting()
Gives if the IP is supposed to be blacklisted or only be kicked.- Returns:
- true if the IP will be blacklisted, false if the IP will be kicked only.
-
getDetectionMethod
SlowBotDisconnectEvent.DetectionMethod getDetectionMethod()
Gives the detection method that detected this slow bot.- Returns:
- the detection method
-
-