Skip to content

Commit

Permalink
add #756
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jul 25, 2024
1 parent 558d927 commit 11b21b8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,13 @@ public void onRightClick(PlayerInteractEvent event) {
if (requiredKeys > 0 && totalKeys < requiredKeys) {
final Map<String, String> placeholders = new HashMap<>();

placeholders.put("{key_amount}", String.valueOf(requiredKeys));
placeholders.put("{required_amount}", String.valueOf(requiredKeys));
placeholders.put("{crate}", crate.getPreviewName());
placeholders.put("{amount}", String.valueOf(totalKeys));
placeholders.put("{crate}", crate.getPreviewName());
placeholders.put("{key}", crate.getKeyName());

Messages.required_keys.sendMessage(player, placeholders);
Messages.not_enough_keys.sendMessage(player, placeholders);

lackingKey(player, crate, clickedBlock, false);

Expand Down

0 comments on commit 11b21b8

Please sign in to comment.