Package com.lahuca.botsentry.api.event
Interface SlowBotDisconnectEvent
- All Superinterfaces:
BotSentryEvent
,Cancellable
- All Known Implementing Classes:
BungeeSlowBotDisconnectEvent
,SpigotSlowBotDisconnectEvent
,SpongeSlowBotDisconnectEvent
,VelocitySlowBotDisconnectEvent
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
Modifier and TypeInterfaceDescriptionstatic enum
No in-depth information will be given per detection method to provide safety. -
Method Summary
Modifier and TypeMethodDescriptionGives the detection method that detected this slow bot.getIP()
Gives the IP that will be blacklisted or kicked.boolean
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 Details
-
getIP
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
-