From f59d7e924cd607ff155de5cfef13f8c69790f206 Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 2 Feb 2017 20:30:37 +0100 Subject: [PATCH] Made modules use lowercase json files --- src/com/redstoner/modules/check/Check.java | 4 ++-- src/com/redstoner/modules/loginsecurity/LoginSecurity.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/redstoner/modules/check/Check.java b/src/com/redstoner/modules/check/Check.java index 6ccb90b..e52448e 100644 --- a/src/com/redstoner/modules/check/Check.java +++ b/src/com/redstoner/modules/check/Check.java @@ -31,7 +31,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase; import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.modules.Module; -@Version(major = 1, minor = 0, revision = 1, compatible = 1) +@Version(major = 1, minor = 0, revision = 2, compatible = 1) public class Check implements Module, Listener { private boolean enabled = false; @@ -40,7 +40,7 @@ public class Check implements Module, Listener @Override public void onEnable() { - Map config = JSONManager.getConfiguration("Check.json"); + Map config = JSONManager.getConfiguration("check.json"); if (config == null || !config.containsKey("database") || !config.containsKey("table")) { Utils.sendErrorMessage(Bukkit.getConsoleSender(), null, "Could not load the Check config file, disabling!"); diff --git a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java index 890ad18..69c27ec 100644 --- a/src/com/redstoner/modules/loginsecurity/LoginSecurity.java +++ b/src/com/redstoner/modules/loginsecurity/LoginSecurity.java @@ -32,7 +32,7 @@ import com.redstoner.misc.mysql.elements.MysqlTable; import com.redstoner.misc.mysql.types.text.VarChar; import com.redstoner.modules.Module; -@Version(major = 1, minor = 0, revision = 1, compatible = 1) +@Version(major = 1, minor = 0, revision = 2, compatible = 1) public class LoginSecurity implements Module, Listener { private boolean enabled = false; @@ -42,7 +42,7 @@ public class LoginSecurity implements Module, Listener @Override public void onEnable() { - Map config = JSONManager.getConfiguration("LoginSecurity.json"); + Map config = JSONManager.getConfiguration("loginsecurity.json"); if (config == null || !config.containsKey("database") || !config.containsKey("table")) { Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,