diff --git a/Essentials/src/config.yml b/Essentials/src/config.yml index aea76ffd0..6ab64c3f5 100644 --- a/Essentials/src/config.yml +++ b/Essentials/src/config.yml @@ -462,7 +462,7 @@ protect: fireball-playerdamage: false witherskull-explosion: flase witherskull-playerdamage: false - witherskull-spawnexplosion: flase + wither-spawnexplosion: flase creeper-explosion: false creeper-playerdamage: false creeper-blockdamage: false diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index bb406ebf9..30a516667 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -224,7 +224,7 @@ public class EssentialsProtectEntityListener implements Listener } return; } - if (event.getEntity() instanceof WitherSkull + if (event.getEntity() instanceof Wither && prot.getSettingBool(ProtectConfig.prevent_witherskull_spawnexplosion)) { event.setCancelled(true); diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java b/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java index c53e921d9..0ef389147 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/ProtectConfig.java @@ -37,7 +37,7 @@ public enum ProtectConfig prevent_fireball_playerdmg("protect.prevent.fireball-playerdamage", false), prevent_witherskull_explosion("protect.prevent.witherskull-explosion", false), prevent_witherskull_playerdmg("protect.prevent.witherskull-playerdamage", false), - prevent_witherskull_spawnexplosion("protect.prevent.witherskull-spawnexplosion", false), + prevent_wither_spawnexplosion("protect.prevent.wither-spawnexplosion", false), prevent_creeper_explosion("protect.prevent.creeper-explosion", true), prevent_creeper_playerdmg("protect.prevent.creeper-playerdamage", false), prevent_creeper_blockdmg("protect.prevent.creeper-blockdamage", false),