mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-03 05:07:59 +02:00
Fix an error with Logging set to 'OFF' triggering a cast exception.
This commit is contained in:
@@ -193,3 +193,4 @@ v 2.0:
|
|||||||
- Fix a cases sensitivity bug in world loading.
|
- Fix a cases sensitivity bug in world loading.
|
||||||
- Stop using the YamlConfiguration in bukkit for our config handling. We can now support periods in world names.
|
- Stop using the YamlConfiguration in bukkit for our config handling. We can now support periods in world names.
|
||||||
- Fix GlobalGroups not loading permission nodes.
|
- Fix GlobalGroups not loading permission nodes.
|
||||||
|
- Fix an error with Logging set to 'OFF' triggering a cast exception.
|
@@ -25,7 +25,7 @@ public class GMConfiguration {
|
|||||||
private boolean toggleValidate;
|
private boolean toggleValidate;
|
||||||
private Integer saveInterval;
|
private Integer saveInterval;
|
||||||
private Integer backupDuration;
|
private Integer backupDuration;
|
||||||
private String loggerLevel;
|
private String loggerLevel = "OFF";
|
||||||
private Map<String, Object> mirrorsMap;
|
private Map<String, Object> mirrorsMap;
|
||||||
|
|
||||||
|
|
||||||
@@ -82,7 +82,9 @@ public class GMConfiguration {
|
|||||||
saveInterval = (Integer) save.get("minutes");
|
saveInterval = (Integer) save.get("minutes");
|
||||||
backupDuration = (Integer) save.get("hours");
|
backupDuration = (Integer) save.get("hours");
|
||||||
|
|
||||||
loggerLevel = ((Map<String, String>) getElement("settings", GMconfig).get("logging")).get("level");
|
Object level = ((Map<String, String>) getElement("settings", GMconfig).get("logging")).get("level");
|
||||||
|
if (level instanceof String)
|
||||||
|
level = (String) level;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Store our mirrors map for parsing later.
|
* Store our mirrors map for parsing later.
|
||||||
|
Reference in New Issue
Block a user