- Added "test-on-startup" option to mysql.yml to test the connection on plugin start.
- Lots of improvements on the MySQL database.
- Updated the Commons library.
New mysql.yml file:
Code (YAML):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# MySQL Configuration #
# #
# Please ensure MySQL is enabled in config.yml before #
# modifying these settings. #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# The full JDBC URL for the database connection.
# Format: jdbc:mysql://<host>:<port>/<database_name>?<parameters>
#
# You *must* replace '<database_name>' with the actual name of your database.
# Example: jdbc:mysql://127.0.0.1:3306/my_server
#
# The extra parameters (?useSSL=false&autoReConnect=true&createDatabaseIfNotExist=true)
# are recommended for connection stability and convenience.
address
: jdbc:mysql://localhost:3306/<database_name>?useSSL=false&autoReConnect=true&createDatabaseIfNotExist=true
# The username for the MySQL database.
user
: root
# The password for the specified MySQL user.
# Please replace '<your_password>' with your database password.
password
: <your_password
>
# The name of the table used to store plugin-specific data.
# It is not recommended to change this value after the initial setup
# unless you are performing a data migration.
table
: eastereggs_stats
# If true, the plugin will attempt to connect to the database during server startup.
# This allows for immediate validation of the credentials and configuration.
# If the connection fails, a detailed error will be logged.
test-on-startup
: true