mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-22 18:46:45 +01:00
Throw ConfigErrors when pet items are invalid.
This commit is contained in:
parent
beb4269525
commit
dc25a38d98
@ -282,10 +282,10 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
Material ocelotMaterial = Material.getMaterial(ocelot.toUpperCase());
|
||||
|
||||
if (wolfMaterial == null && !wolf.isEmpty()) {
|
||||
plugin.getLogger().warning("Unknown item type for wolf pet item: " + wolf);
|
||||
throw new ConfigError("Failed to parse item type for wolf pet item: " + wolf);
|
||||
}
|
||||
if (ocelotMaterial == null && !ocelot.isEmpty()) {
|
||||
plugin.getLogger().warning("Unknown item type for ocelot pet item: " + ocelot);
|
||||
throw new ConfigError("Failed to parse item type for ocelot pet item: " + ocelot);
|
||||
}
|
||||
|
||||
spawnsPets = new SpawnsPets(wolfMaterial, ocelotMaterial);
|
||||
|
Loading…
Reference in New Issue
Block a user