Made modules use lowercase json files
This commit is contained in:
parent
cce1fdaf4a
commit
f59d7e924c
@ -31,7 +31,7 @@ import com.redstoner.misc.mysql.elements.MysqlDatabase;
|
|||||||
import com.redstoner.misc.mysql.elements.MysqlTable;
|
import com.redstoner.misc.mysql.elements.MysqlTable;
|
||||||
import com.redstoner.modules.Module;
|
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
|
public class Check implements Module, Listener
|
||||||
{
|
{
|
||||||
private boolean enabled = false;
|
private boolean enabled = false;
|
||||||
@ -40,7 +40,7 @@ public class Check implements Module, Listener
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable()
|
public void onEnable()
|
||||||
{
|
{
|
||||||
Map<Serializable, Serializable> config = JSONManager.getConfiguration("Check.json");
|
Map<Serializable, Serializable> config = JSONManager.getConfiguration("check.json");
|
||||||
if (config == null || !config.containsKey("database") || !config.containsKey("table"))
|
if (config == null || !config.containsKey("database") || !config.containsKey("table"))
|
||||||
{
|
{
|
||||||
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null, "Could not load the Check config file, disabling!");
|
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null, "Could not load the Check config file, disabling!");
|
||||||
|
@ -32,7 +32,7 @@ import com.redstoner.misc.mysql.elements.MysqlTable;
|
|||||||
import com.redstoner.misc.mysql.types.text.VarChar;
|
import com.redstoner.misc.mysql.types.text.VarChar;
|
||||||
import com.redstoner.modules.Module;
|
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
|
public class LoginSecurity implements Module, Listener
|
||||||
{
|
{
|
||||||
private boolean enabled = false;
|
private boolean enabled = false;
|
||||||
@ -42,7 +42,7 @@ public class LoginSecurity implements Module, Listener
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable()
|
public void onEnable()
|
||||||
{
|
{
|
||||||
Map<Serializable, Serializable> config = JSONManager.getConfiguration("LoginSecurity.json");
|
Map<Serializable, Serializable> config = JSONManager.getConfiguration("loginsecurity.json");
|
||||||
if (config == null || !config.containsKey("database") || !config.containsKey("table"))
|
if (config == null || !config.containsKey("database") || !config.containsKey("table"))
|
||||||
{
|
{
|
||||||
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
Utils.sendErrorMessage(Bukkit.getConsoleSender(), null,
|
||||||
|
Reference in New Issue
Block a user