Package com.lahuca.botsentry.api
Class BotSentryMySQL
java.lang.Object
com.lahuca.botsentry.api.BotSentryMySQL
Returns the MySQL values from the plugin.
This class only works when MySQL is set to on.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gives the time in milliseconds (time fromSystem.currentTimeMillis()
) of the latest time the plugin has synchronised its data with the MySQL server.Gives the database of the MySQL server which the plugin uses.Gives the ip of the MySQL server which the plugin connects to.Gives the password of the user of the MySQL server which the plugin connects with.int
Gives the port of the MySQL server which the plugin connects to.Gives the username of the user of the MySQL server which the plugin connects with.
-
Method Details
-
getLastUpdateTime
public long getLastUpdateTime()Gives the time in milliseconds (time fromSystem.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
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
Gives the database of the MySQL server which the plugin uses.- Returns:
- The database of the MySQL server.
-
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
Gives the password of the user of the MySQL server which the plugin connects with.- Returns:
- The ip of the MySQL server.
-