mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-28 01:10:52 +00:00
Fix an error with Logging set to 'OFF' triggering a cast exception.
This commit is contained in:
parent
72aeec58ed
commit
84f7859ca9
2 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue