From f1d581a8d8e0d1ee6e4c2b71cf3701cc20264eea Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 30 Sep 2016 15:29:50 +1000 Subject: [PATCH] Fixes #1377 --- .../java/com/intellectualcrafters/plot/commands/Reload.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Reload.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Reload.java index 5cb336f96..d5b0e57b4 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Reload.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Reload.java @@ -31,6 +31,9 @@ public class Reload extends SubCommand { @Override public void run(PlotArea area) { ConfigurationSection worldSection = PS.get().worlds.getConfigurationSection("worlds." + area.worldname); + if (worldSection == null) { + worldSection = PS.get().worlds.createSection("worlds." + area.worldname); + } if (area.TYPE != 2 || !worldSection.contains("areas")) { area.saveConfiguration(worldSection); area.loadDefaultConfiguration(worldSection);