diff --git a/src/main/java/com/badbones69/crazycrates/config/impl/messages/CrateKeys.java b/src/main/java/com/badbones69/crazycrates/config/impl/messages/CrateKeys.java index 406d1ee92..c06fa705c 100644 --- a/src/main/java/com/badbones69/crazycrates/config/impl/messages/CrateKeys.java +++ b/src/main/java/com/badbones69/crazycrates/config/impl/messages/CrateKeys.java @@ -28,8 +28,8 @@ public void registerComments(CommentsConfiguration conf) { @Comment("A list of available placeholders: {number}") public static final Property not_a_number = newProperty("crates.requirements.not-a-number", "{prefix}{number} is not a number."); - @Comment("A list of available placeholders: {prefix}, {amount}, {key_amount}, {crate}") - public static final Property required_keys = newProperty("crates.requirements.not-enough-keys", "{prefix}You need {key_amount} keys to open {crate}. You have {amount}."); + @Comment("A list of available placeholders: {amount}, {required_amount}, {crate}") + public static final Property not_enough_keys = newProperty("crates.requirements.not-enough-keys", "{prefix}You need {key_amount} keys to open {crate}. You have {amount}."); public static final Property not_on_block = newProperty("crates.not-a-block", "{prefix}You must be standing on a block to use {crate}."); diff --git a/src/main/java/com/badbones69/crazycrates/listeners/CrateControlListener.java b/src/main/java/com/badbones69/crazycrates/listeners/CrateControlListener.java index 9ebe9e475..61a0f535c 100644 --- a/src/main/java/com/badbones69/crazycrates/listeners/CrateControlListener.java +++ b/src/main/java/com/badbones69/crazycrates/listeners/CrateControlListener.java @@ -156,7 +156,7 @@ public void onRightClick(PlayerInteractEvent event) { final Map placeholders = new HashMap<>(); placeholders.put("{required_amount}", String.valueOf(requiredKeys)); - placeholders.put("{crate}", crate.getPreviewName()); + placeholders.put("{key_amount}", String.valueOf(requiredKeys)); // deprecated, remove in next major version of minecraft. placeholders.put("{amount}", String.valueOf(totalKeys)); placeholders.put("{crate}", crate.getPreviewName()); placeholders.put("{key}", crate.getKeyName());