diff --git a/build.gradle.kts b/build.gradle.kts index de92737..785de0a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "net.azisaba" -version = "2.0.3+1.15.2" +version = "2.0.4+1.15.2" repositories { mavenCentral() diff --git a/src/main/java/net/azisaba/lifepvelevel/listener/PlayerListener.java b/src/main/java/net/azisaba/lifepvelevel/listener/PlayerListener.java index 43ccf6d..11b1cdf 100644 --- a/src/main/java/net/azisaba/lifepvelevel/listener/PlayerListener.java +++ b/src/main/java/net/azisaba/lifepvelevel/listener/PlayerListener.java @@ -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) { diff --git a/src/main/resources/messages_en.yml b/src/main/resources/messages_en.yml index b834bd2..f32309a 100644 --- a/src/main/resources/messages_en.yml +++ b/src/main/resources/messages_en.yml @@ -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!" diff --git a/src/main/resources/messages_ja.yml b/src/main/resources/messages_ja.yml index 5e13c5e..5dacc81 100644 --- a/src/main/resources/messages_ja.yml +++ b/src/main/resources/messages_ja.yml @@ -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に上がりました!"