Class BotSentryMySQL

java.lang.Object
com.lahuca.botsentry.api.BotSentryMySQL

public class BotSentryMySQL extends Object
Returns the MySQL values from the plugin. This class only works when MySQL is set to on.
  • Method Details

    • getLastUpdateTime

      public long getLastUpdateTime()
      Gives the time in milliseconds (time from System.currentTimeMillis()) of the latest time the plugin has synchronised its data with the MySQL server. If start-up task is still in request by the scheduler by the server or if it failed, it will return a value of -1.
      Returns:
      The time in milliseconds of the last update time.
    • getMySQLIP

      public String getMySQLIP()
      Gives the ip of the MySQL server which the plugin connects to.
      Returns:
      The ip of the MySQL server.
    • getMySQLPort

      public int getMySQLPort()
      Gives the port of the MySQL server which the plugin connects to.
      Returns:
      The port of the MySQL server.
    • getMySQLDatabase

      public String getMySQLDatabase()
      Gives the database of the MySQL server which the plugin uses.
      Returns:
      The database of the MySQL server.
    • getMySQLUsername

      public String getMySQLUsername()
      Gives the username of the user of the MySQL server which the plugin connects with.
      Returns:
      The username of the user of the MySQL server.
    • getMySQLPassword

      public String getMySQLPassword()
      Gives the password of the user of the MySQL server which the plugin connects with.
      Returns:
      The ip of the MySQL server.