mirror of
https://github.com/unmojang/OnlineModeFix.git
synced 2025-09-15 18:34:41 -04:00
Read Null strings correctly in Bukkit
This commit is contained in:
parent
2d88ce8cb3
commit
bde15bb9e0
@ -47,6 +47,15 @@ public class MineOnlineConfig extends Configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getConfigString(String key) {
|
public String getConfigString(String key) {
|
||||||
|
if(getConfigOption(key) == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
//Hacky solution
|
||||||
|
if(String.valueOf(getConfigOption(key)).equalsIgnoreCase("null")) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return String.valueOf(getConfigOption(key));
|
return String.valueOf(getConfigOption(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user