Skip to content

Commit

Permalink
fix: item placeholder leads to error on spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed Jun 5, 2024
1 parent 45a3eca commit 64e992a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public TagResolver resolveChatMessagePlaceholder(Player player, String message)
if (item.getType().isAir()) return TagResolver.empty();

Component component;
if (Environment.PAPER.isPaper()) {
if (Environment.ENVIRONMENT.isPaper()) {
component = EventMessageUtils.displayNameOfItem(item);
} else {
String displayName = item.getItemMeta().getDisplayName();
Expand Down

0 comments on commit 64e992a

Please sign in to comment.