Package com.lahuca.botsentry.api
Class AntiBotSentryMode
- java.lang.Object
 - 
- com.lahuca.botsentry.api.AntiBotSentryMode
 
 
- 
public class AntiBotSentryMode extends java.lang.ObjectClass for handling and retrieving information about AntiBot Mode. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlacklistedIPs()Gives the amount of blacklisted IPs in the current AntiBot Mode session.longgetStartTime()Gives the time in milliseconds (time fromSystem.currentTimeMillis()) when the AntiBot Mode was started.booleanisAntiBotMode()Gives the current AntiBot Mode status.voidsetAntiBotMode(boolean enabled)Toggles the AntiBot Mode state. 
 - 
 
- 
- 
Method Detail
- 
isAntiBotMode
public boolean isAntiBotMode()
Gives the current AntiBot Mode status.- Returns:
 - True: enabled, false: disabled.
 
 
- 
setAntiBotMode
public void setAntiBotMode(boolean enabled)
Toggles the AntiBot Mode state. It handles everything according to the state given: file saving, data writing, etc.- Parameters:
 enabled- The state to set the AntiBot Mode to.
 
- 
getStartTime
public long getStartTime()
Gives the time in milliseconds (time fromSystem.currentTimeMillis()) when the AntiBot Mode was started. If AntiBot Mode is disabled, it will return a value of -1.- Returns:
 - The AntiBot Mode start time in milliseconds or -1.
 
 
- 
getBlacklistedIPs
public int getBlacklistedIPs()
Gives the amount of blacklisted IPs in the current AntiBot Mode session. If AntiBot Mode is disabled, it will return a value of -1.- Returns:
 - The amount of blacklisted IPs or -1.
 
 
 - 
 
 -