Fix /dxl invite NPE; resolves #186

This commit is contained in:
Daniel Saukel 2016-12-03 13:31:07 +01:00
parent 3801466746
commit bacbbe471f

View File

@ -302,9 +302,11 @@ public class WorldConfig extends GameRules {
FileConfiguration configFile = YamlConfiguration.loadConfiguration(file); FileConfiguration configFile = YamlConfiguration.loadConfiguration(file);
// Messages // Messages
if (msgs != null) {
for (int msgs : this.msgs.keySet()) { for (int msgs : this.msgs.keySet()) {
configFile.set("message." + msgs, this.msgs.get(msgs)); configFile.set("message." + msgs, this.msgs.get(msgs));
} }
}
List<String> secureObjectIds = new ArrayList<>(); List<String> secureObjectIds = new ArrayList<>();