Update to core version 3.3.0-SNAPSHOT

This commit is contained in:
ceze88 2024-08-21 16:52:32 +02:00
parent a626167277
commit 71190be103
3 changed files with 5 additions and 5 deletions

View File

@ -122,7 +122,7 @@
<dependency>
<groupId>com.craftaro</groupId>
<artifactId>CraftaroCore</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.3.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

View File

@ -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());
}
}

View File

@ -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);