Class MethodProvider

    • Constructor Detail

      • MethodProvider

        public MethodProvider()
    • Method Detail

      • sleep

        public void sleep​(long ms)
      • sleep

        public void sleep​(long min,
                          long max)
      • sleepUntil

        public boolean sleepUntil​(Condition terminate,
                                  Condition reset,
                                  long timeout,
                                  long polling)
      • sleepUntil

        public boolean sleepUntil​(Condition terminate,
                                  long timeout,
                                  long polling)
      • sleepWhile

        public boolean sleepWhile​(Condition condition,
                                  Condition reset,
                                  long timeout,
                                  long polling)
      • sleepWhile

        public boolean sleepWhile​(Condition condition,
                                  long timeout,
                                  long polling)
      • print

        public void print​(java.lang.Object msg)
        Prints to console with Logger.LogType.SCRIPT
        Parameters:
        msg - message to print
      • log

        public void log​(java.lang.Object object)
        Prints to console with Logger.LogType.SCRIPT
        Parameters:
        object - object to log
      • info

        public void info​(java.lang.Object msg)
        Logs to console with Logger.LogType.INFO
        Parameters:
        msg - message to log
      • debug

        public void debug​(java.lang.Object msg)
        Logs to console with Logger.LogType.DEBUG Only logs if debug flag is enabled
        Parameters:
        msg - message to log
      • error

        public void error​(java.lang.Object msg)
        Logs to console with Logger.LogType.ERROR
        Parameters:
        msg - message to log
      • isUserVIP

        public boolean isUserVIP()
        Checks whether the DreamBot member logged into the client is a VIP member or above (this includes but may not be limited to: Staff, Ex-Staff, Sponsor, Scripters, and Lead Designer)
        Returns:
        true if VIP or above
      • isUserSponsor

        public boolean isUserSponsor()
        Checks whether the DreamBot member logged into the client is a Sponsor or above (This includes but may not be limited to: Staff, Ex-Staff, Scripters, and Lead Designer)
        Returns:
        true if Sponsor or above