mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Fix NPE in setclass command.
This commit is contained in:
parent
8ea4799b42
commit
354784269e
@ -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:
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user