Skip to content

Commit a57d3f4

Browse files
committed
bugfix: fix message 'msg not found'
1 parent c39c921 commit a57d3f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group = 'com.flyaway.xpget'
6-
version = '2.0.0'
6+
version = '2.0.1'
77

88
java {
99
toolchain {

src/main/java/com/flyaway/xpget/XpBottleManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void convertSpecific(Player player, int bottleAmount) {
5555
int playerExp = player.getTotalExperience();
5656

5757
if (playerExp < requiredExp) {
58-
plugin.sendMessage(player, "messages.not-enough-exp",
58+
plugin.sendMessage(player, "not-enough-exp",
5959
"required", String.valueOf(requiredExp),
6060
"current", String.valueOf(playerExp));
6161
return;
@@ -64,20 +64,20 @@ public void convertSpecific(Player player, int bottleAmount) {
6464
InventoryStats stats = scanInventory(player.getInventory());
6565

6666
if (stats.emptyBottles() < bottleAmount) {
67-
plugin.sendMessage(player, "messages.not-enough-empty",
67+
plugin.sendMessage(player, "not-enough-empty",
6868
"needed", String.valueOf(bottleAmount),
6969
"current", String.valueOf(stats.emptyBottles()));
7070
return;
7171
}
7272

7373
if (stats.spaceForXp() < bottleAmount) {
74-
plugin.sendMessage(player, "messages.not-enough-space",
74+
plugin.sendMessage(player, "not-enough-space",
7575
"available", String.valueOf(stats.spaceForXp()));
7676
return;
7777
}
7878

7979
performConversion(player, bottleAmount);
80-
plugin.sendMessage(player, "messages.success-specific",
80+
plugin.sendMessage(player, "success-specific",
8181
"amount", String.valueOf(bottleAmount));
8282
}
8383

0 commit comments

Comments
 (0)