Skip to content

Commit

Permalink
fix duplication bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Nov 27, 2024
1 parent e721e18 commit 69f2ff0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "net.azisaba"
version = "2.0.3+1.15.2"
version = "2.0.4+1.15.2"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,19 @@ public static void checkIllegalArmor(@NotNull Player player) {
}
if (helmet != null) {
ItemStash.getInstance().addItemToStash(player.getUniqueId(), helmet);
player.getInventory().setHelmet(null);
}
if (chestPlate != null) {
ItemStash.getInstance().addItemToStash(player.getUniqueId(), chestPlate);
player.getInventory().setChestplate(null);
}
if (leggings != null) {
ItemStash.getInstance().addItemToStash(player.getUniqueId(), leggings);
player.getInventory().setLeggings(null);
}
if (boots != null) {
ItemStash.getInstance().addItemToStash(player.getUniqueId(), boots);
player.getInventory().setBoots(null);
}
player.updateInventory();
if (helmet != null || chestPlate != null || leggings != null || boots != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/messages_en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ item.lore.required_level: "&eRequired PvE Level &5> %s"
item.cannot_use_item: "&6&kk &c&lYou need at least PvE Level &6%s&c&l to use this item."
item.cannot_use_item_main_hand: "&6&kk &c&lYou need at least PvE Level &6%s&c&l to use this item. (Main hand)"
item.cannot_use_item_off_hand: "&6&kk &c&lYou need at least PvE Level &6%s&c&l to use this item. (Off hand)"
item.illegal_armor: "&cYou have an armor piece whose requirements are not met to wear."
item.illegal_armor: "&cYou have an armor piece whose requirements are not met to wear. Those items were put into the stash."
level_up.self: "&f&lPvE Level increased to &7%s&f&l->&a&l%s&f&l!"
level_up.everyone: "&6[PvE Level] &e%s&6's PvE Level increased to &a%s&6!"
2 changes: 1 addition & 1 deletion src/main/resources/messages_ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ item.lore.required_level: "&e必要なPvEレベル &5> %s"
item.cannot_use_item: "&6&kk &c&lこのアイテムを使用するにはPvEレベル&6%s&c&l以上が必要です。"
item.cannot_use_item_main_hand: "&6&kk &c&lこのアイテムを使用するにはPvEレベル&6%s&c&l以上が必要です。(メインハンド)"
item.cannot_use_item_off_hand: "&6&kk &c&lこのアイテムを使用するにはPvEレベル&6%s&c&l以上が必要です。(オフハンド)"
item.illegal_armor: "&c装備する要件を満たしていない防具があります。"
item.illegal_armor: "&c装備する要件を満たしていない防具があります。これらのアイテムはStashに格納されました。"
level_up.self: "&f&lPvEレベルが&7%s&f&l->&a&l%s&f&lに上がりました!"
level_up.everyone: "&6[PvEレベル] &e%s&6のPvEレベルが&a%s&6に上がりました!"

0 comments on commit 69f2ff0

Please sign in to comment.