public void onZombieSpawn(CreatureSpawnEvent e) { if(ConfigAPI.customzombie()) { if(e.getEntity() instanceof Zombie) { Zombie zom = (Zombie) e.getEntity(); CustomMob.makeCustomZombie(zom); } else if(e.getEntity().getType().equals(EntityType.PLAYER)) { ; } else { e.setCancelled(true); e.getEntity().setHealth(0.0D); } } }