From 71190be10340089f03bc79aa127678e488ab142c Mon Sep 17 00:00:00 2001 From: ceze88 Date: Wed, 21 Aug 2024 16:52:32 +0200 Subject: [PATCH] Update to core version 3.3.0-SNAPSHOT --- pom.xml | 2 +- .../craftaro/epicenchants/listeners/item/BookListener.java | 4 ++-- .../java/com/craftaro/epicenchants/menus/EnchanterMenu.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 7df05b3..01b1d01 100644 --- a/pom.xml +++ b/pom.xml @@ -122,7 +122,7 @@ com.craftaro CraftaroCore - 3.1.0-SNAPSHOT + 3.3.0-SNAPSHOT compile diff --git a/src/main/java/com/craftaro/epicenchants/listeners/item/BookListener.java b/src/main/java/com/craftaro/epicenchants/listeners/item/BookListener.java index 36d1075..57fed1e 100644 --- a/src/main/java/com/craftaro/epicenchants/listeners/item/BookListener.java +++ b/src/main/java/com/craftaro/epicenchants/listeners/item/BookListener.java @@ -106,11 +106,11 @@ public class BookListener extends ItemListener { useItem(event); event.getPlayer().getInventory().addItem(enchant.get().getBook().get(enchant.get(), level)); - event.getPlayer().sendMessage(this.instance.getLocale().getMessage("book.discover") + this.instance.getLocale().getMessage("book.discover") .processPlaceholder("group_name", group.getName()) .processPlaceholder("group_color", group.getColor()) .processPlaceholder("enchant_format", enchant.get().getFormat()) .processPlaceholder("level", level) - .getPrefixedMessage()); + .sendPrefixedMessage(event.getPlayer()); } } diff --git a/src/main/java/com/craftaro/epicenchants/menus/EnchanterMenu.java b/src/main/java/com/craftaro/epicenchants/menus/EnchanterMenu.java index b0a466f..40204b6 100644 --- a/src/main/java/com/craftaro/epicenchants/menus/EnchanterMenu.java +++ b/src/main/java/com/craftaro/epicenchants/menus/EnchanterMenu.java @@ -62,12 +62,12 @@ public class EnchanterMenu extends FastInv { if (EconomyManager.isEnabled()) { EconomyManager.withdrawBalance(player, ecoCost); - event.getPlayer().sendMessage(instance.getLocale().getMessage("enchanter.success") + instance.getLocale().getMessage("enchanter.success") .processPlaceholder("group_name", group.getName()) .processPlaceholder("group_color", group.getColor()) .processPlaceholder("eco_cost", ecoCost) .processPlaceholder("exp_cost", expCost) - .getPrefixedMessage()); + .sendPrefixedMessage(event.getPlayer()); } changeExp(player, -expCost);