From 36d74db7ec9c26d3a14851e77cd1d432bb283822 Mon Sep 17 00:00:00 2001 From: filoghost Date: Wed, 1 Jul 2020 08:45:56 +0200 Subject: [PATCH] Fix required items message --- .../me/filoghost/chestcommands/menu/icon/RequiredItems.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItems.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItems.java index ed768a1..e9a49a1 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItems.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItems.java @@ -47,7 +47,7 @@ public class RequiredItems implements Requirement { player.sendMessage(ChestCommands.getLang().no_required_item .replace("{material}", MaterialsHelper.formatMaterial(item.getMaterial())) .replace("{amount}", Integer.toString(item.getAmount())) - .replace("{datavalue}", item.hasRestrictiveDurability() ? Short.toString(item.getDurability()) : ChestCommands.getLang().any) + .replace("{durability}", item.hasRestrictiveDurability() ? Short.toString(item.getDurability()) : ChestCommands.getLang().any) ); } }