From 42f41618cab20143d3cb4e4d1fbab0d9f5cabb40 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 27 May 2022 15:38:28 +0100 Subject: [PATCH] Added warning for MySQL users --- .../eco/internal/spigot/data/storage/MySQLDataHandler.kt | 3 +++ eco-core/core-plugin/src/main/resources/config.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/MySQLDataHandler.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/MySQLDataHandler.kt index 4e6f3be9..2551ee4f 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/MySQLDataHandler.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/storage/MySQLDataHandler.kt @@ -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") diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 40384076..efd8d9e4 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -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.