mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Add extra logging
This commit is contained in:
1 parent
8dd08c2389
commit
0d4636a940
1 file changed
+3
@@ -50,14 +50,17 @@ public final class CarbonChat extends JavaPlugin {
|
||||
contextManager = new ContextManager();
|
||||
|
||||
if (getConfig().getBoolean("redis.enabled")) {
|
||||
getLogger().info("Enabling Redis support!");
|
||||
redisManager = new RedisManager(this);
|
||||
}
|
||||
|
||||
String storageType = getConfig().getString("storage.type");
|
||||
|
||||
if (storageType.equalsIgnoreCase("mysql")) {
|
||||
getLogger().info("Enabling MySQL storage!");
|
||||
userService = new MySQLUserService(this);
|
||||
} else if (storageType.equalsIgnoreCase("json")) {
|
||||
getLogger().info("Enabling JSON storage!");
|
||||
userService = new JSONUserService(this);
|
||||
} else {
|
||||
getLogger().warning("Invalid storage type selected! Falling back to JSON.");
|
||||
|
||||
Reference in new issue
Block a user