diff --git a/resources/plugin.yml b/resources/plugin.yml index c2bc844..35a87ff 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -1,7 +1,7 @@ name: MobArena author: garbagemule main: com.garbagemule.MobArena.MobArena -version: 0.95.5.30 +version: 0.95.5.31 softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault] commands: ma: diff --git a/src/com/garbagemule/MobArena/ArenaMasterImpl.java b/src/com/garbagemule/MobArena/ArenaMasterImpl.java index db1b410..214de27 100644 --- a/src/com/garbagemule/MobArena/ArenaMasterImpl.java +++ b/src/com/garbagemule/MobArena/ArenaMasterImpl.java @@ -383,8 +383,9 @@ public class ArenaMasterImpl implements ArenaMaster // Create the node. config.set(path, ""); - // Grab the section. + // Grab the section, create if missing ConfigurationSection section = config.getConfigurationSection(path); + if (section == null) section = config.createSection(path); // Take the current items and armor. section.set("items", ItemParser.parseString(inv.getContents()));