mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-12-22 09:08:01 +01:00
Update to core version 3.3.0-SNAPSHOT
This commit is contained in:
parent
a626167277
commit
71190be103
2
pom.xml
2
pom.xml
@ -122,7 +122,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.craftaro</groupId>
|
<groupId>com.craftaro</groupId>
|
||||||
<artifactId>CraftaroCore</artifactId>
|
<artifactId>CraftaroCore</artifactId>
|
||||||
<version>3.1.0-SNAPSHOT</version>
|
<version>3.3.0-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@ -106,11 +106,11 @@ public class BookListener extends ItemListener {
|
|||||||
useItem(event);
|
useItem(event);
|
||||||
event.getPlayer().getInventory().addItem(enchant.get().getBook().get(enchant.get(), level));
|
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_name", group.getName())
|
||||||
.processPlaceholder("group_color", group.getColor())
|
.processPlaceholder("group_color", group.getColor())
|
||||||
.processPlaceholder("enchant_format", enchant.get().getFormat())
|
.processPlaceholder("enchant_format", enchant.get().getFormat())
|
||||||
.processPlaceholder("level", level)
|
.processPlaceholder("level", level)
|
||||||
.getPrefixedMessage());
|
.sendPrefixedMessage(event.getPlayer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,12 +62,12 @@ public class EnchanterMenu extends FastInv {
|
|||||||
|
|
||||||
if (EconomyManager.isEnabled()) {
|
if (EconomyManager.isEnabled()) {
|
||||||
EconomyManager.withdrawBalance(player, ecoCost);
|
EconomyManager.withdrawBalance(player, ecoCost);
|
||||||
event.getPlayer().sendMessage(instance.getLocale().getMessage("enchanter.success")
|
instance.getLocale().getMessage("enchanter.success")
|
||||||
.processPlaceholder("group_name", group.getName())
|
.processPlaceholder("group_name", group.getName())
|
||||||
.processPlaceholder("group_color", group.getColor())
|
.processPlaceholder("group_color", group.getColor())
|
||||||
.processPlaceholder("eco_cost", ecoCost)
|
.processPlaceholder("eco_cost", ecoCost)
|
||||||
.processPlaceholder("exp_cost", expCost)
|
.processPlaceholder("exp_cost", expCost)
|
||||||
.getPrefixedMessage());
|
.sendPrefixedMessage(event.getPlayer());
|
||||||
}
|
}
|
||||||
|
|
||||||
changeExp(player, -expCost);
|
changeExp(player, -expCost);
|
||||||
|
Loading…
Reference in New Issue
Block a user