Class BotSentryMySQL


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      java.lang.String getMySQLDatabase()
      Gives the database of the MySQL server which the plugin uses.
      java.lang.String getMySQLIP()
      Gives the ip of the MySQL server which the plugin connects to.
      java.lang.String getMySQLPassword()
      Gives the password of the user of the MySQL server which the plugin connects with.
      int getMySQLPort()
      Gives the port of the MySQL server which the plugin connects to.
      java.lang.String getMySQLUsername()
      Gives the username of the user of the MySQL server which the plugin connects with.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.lang.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 java.lang.String getMySQLDatabase()
        Gives the database of the MySQL server which the plugin uses.
        Returns:
        The database of the MySQL server.
      • getMySQLUsername

        public java.lang.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 java.lang.String getMySQLPassword()
        Gives the password of the user of the MySQL server which the plugin connects with.
        Returns:
        The ip of the MySQL server.