mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-23 23:55:33 +02:00
Locale NPE
This commit is contained in:
@@ -454,7 +454,10 @@ public class MainConfig extends ConfigValidated {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getLocale() {
|
public String getLocale() {
|
||||||
return getStringValue(GENERAL, LOCALE, EN_US);
|
if(hasNode(GENERAL, LOCALE))
|
||||||
|
return getStringValue(GENERAL, LOCALE);
|
||||||
|
else
|
||||||
|
return "en_US";
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getMOTDEnabled() {
|
public boolean getMOTDEnabled() {
|
||||||
|
Reference in New Issue
Block a user