Merge pull request #1 from SpraxDev/fix-messages

Fix some messages
This commit is contained in:
Christian Koop 2021-04-06 18:38:47 +02:00 committed by GitHub
commit 41cc5ea951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 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);

View File

@ -18,6 +18,9 @@ command:
whitescroll:
received: '&7You have been given a whitescroll.'
gave: '&7You gave &6{player} &7a whitescroll.'
blackscroll:
received: '&7You have been given a blackscroll.'
gave: '&7You gave &6{player} &7a blackscroll.'
apply:
invaliditem: '&cYou cannot apply &4{enchant}&r &cto this item.'
reload: '&7Configuration files reloaded.'