Skip to content

Commit

Permalink
use correct crate name for {crate} in command set
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jul 18, 2024
1 parent 33ee0ec commit d375800
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ public void set(Player player, @Suggestion("crates") String crateName) {

if (this.crateManager.isCrateLocation(block.getLocation())) {
player.sendRichMessage(Messages.physical_crate_already_exists.getMessage(player, new HashMap<>() {{
put("{crate}", crate.getName());

final CrateLocation crateLocation = crateManager.getCrateLocation(block.getLocation());

put("{id}", crateLocation != null ? crateLocation.getID() : "N/A");
put("{crate}", crateLocation != null ? crateLocation.getCrate().getName() : "N/A");
}}));

return;
Expand Down

0 comments on commit d375800

Please sign in to comment.