Fixed issue #932 about Out of Mana message not being sent when it should.

This commit is contained in:
Ka0rX 2023-09-05 21:56:52 +01:00
parent 3fa278a920
commit 2a802e40bf

View File

@ -66,7 +66,7 @@ public class CastableSkill extends Skill {
// Mana cost
if (playerData.getMana() < getParameter("mana")) {
if (loud) new ConfigMessage("casting.no-mana").addPlaceholders(
if (loud) MMOCore.plugin.configManager.getSimpleMessage("casting.no-mana",
"mana-required", MythicLib.plugin.getMMOConfig().decimal.format((getParameter("mana") - playerData.getMana())),
"mana", playerData.getProfess().getManaDisplay().getName()).send(playerData.getPlayer());
return false;