mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 00:26:45 +01:00
Locale NPE
This commit is contained in:
parent
562066311b
commit
53f06832f1
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user