mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-18 13:31:30 +01:00
Fix NPE in setclass command.
This commit is contained in:
parent
8ea4799b42
commit
354784269e
@ -1,7 +1,7 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
author: garbagemule
|
author: garbagemule
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.95.5.30
|
version: 0.95.5.31
|
||||||
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
|
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
@ -383,8 +383,9 @@ public class ArenaMasterImpl implements ArenaMaster
|
|||||||
// Create the node.
|
// Create the node.
|
||||||
config.set(path, "");
|
config.set(path, "");
|
||||||
|
|
||||||
// Grab the section.
|
// Grab the section, create if missing
|
||||||
ConfigurationSection section = config.getConfigurationSection(path);
|
ConfigurationSection section = config.getConfigurationSection(path);
|
||||||
|
if (section == null) section = config.createSection(path);
|
||||||
|
|
||||||
// Take the current items and armor.
|
// Take the current items and armor.
|
||||||
section.set("items", ItemParser.parseString(inv.getContents()));
|
section.set("items", ItemParser.parseString(inv.getContents()));
|
||||||
|
Loading…
Reference in New Issue
Block a user