Class AntiBotSentryMode


  • public class AntiBotSentryMode
    extends java.lang.Object
    Class for handling and retrieving information about AntiBot Mode.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBlacklistedIPs()
      Gives the amount of blacklisted IPs in the current AntiBot Mode session.
      long getStartTime()
      Gives the time in milliseconds (time from System.currentTimeMillis()) when the AntiBot Mode was started.
      boolean isAntiBotMode()
      Gives the current AntiBot Mode status.
      void setAntiBotMode​(boolean enabled)
      Toggles the AntiBot Mode state.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 from System.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.