Added warning for MySQL users

This commit is contained in:
Auxilor
2022-05-27 15:38:28 +01:00
parent de878fd423
commit 42f41618ca
2 changed files with 4 additions and 1 deletions

View File

@@ -62,6 +62,9 @@ class MySQLDataHandler(
private val serverHandler: ImplementedMySQLHandler
init {
plugin.logger.warning("You're using the MySQL Data Handler")
plugin.logger.warning("It's recommended to switch to MongoDB (mongo)!")
val config = HikariConfig()
config.driverClassName = "com.mysql.cj.jdbc.Driver"
config.username = plugin.configYml.getString("mysql.user")

View File

@@ -6,7 +6,7 @@
# How player/server data is saved:
# yaml - Stored in data.yml: Good option for single-node servers (i.e. no BungeeCord/Velocity)
# mongo - (Recommended) If you're running on a network (Bungee/Velocity), you should use MongoDB if you can.
# mysql - The basic choice for Bungee/Velocity networks, less flexible and worse performance than MongoDB. Use only if you can't use MongoDB.
# mysql - (Not Recommended) The basic choice for Bungee/Velocity networks, less flexible and worse performance than MongoDB. Only use it if you can't use MongoDB.
data-handler: yaml
# If data should be migrated automatically when changing data handler.