Fix color code not getting applied to enchanter-message (SD-7844)

This commit is contained in:
Christian Koop 2021-04-02 15:22:44 +02:00
parent 9fb937cad2
commit 08b745d8dd
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 2 additions and 2 deletions

View File

@ -60,12 +60,12 @@ public class EnchanterMenu extends FastInv {
if (EconomyManager.isEnabled()) {
EconomyManager.withdrawBalance(player, ecoCost);
instance.getLocale().getMessage("enchanter.success")
event.getPlayer().sendMessage(instance.getLocale().getMessage("enchanter.success")
.processPlaceholder("group_name", group.getName())
.processPlaceholder("group_color", group.getColor())
.processPlaceholder("eco_cost", ecoCost)
.processPlaceholder("exp_cost", expCost)
.sendPrefixedMessage(player);
.getPrefixedMessage());
}
changeExp(player, -expCost);