Fix required items message

This commit is contained in:
filoghost 2020-07-01 08:45:56 +02:00
parent 1f2582283f
commit 36d74db7ec

View File

@ -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)
);
}
}