166167168169170171172173174175176
// Add it to the arena. monsterManager.addMonster(e); // Set the health. e.resetMaxHealth(); // Avoid conflicts/enormous multiplications from other plugins handling Mob health int health = (int) Math.max(1D, e.getMaxHealth() * mul); e.setMaxHealth(health); e.setHealth(health); // Switch on the type.