Skip to content

Commit

Permalink
Fix component appending in social spy (#5650)
Browse files Browse the repository at this point in the history
fixes #5649

this time it wasn't me!
  • Loading branch information
JRoy authored Feb 5, 2024
1 parent 0d1462a commit d4ecfd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public void handlePlayerCommandPreprocess(final PlayerCommandPreprocessEvent eve
final Component base = (user.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers())
? spyer.tlComponent("socialSpyMutedPrefix")
: spyer.tlComponent("socialSpyPrefix");
spyer.sendComponent(base.append(Component.text(AdventureUtil.legacyToAdventure(player.getDisplayName()) + ": " + event.getMessage())));
spyer.sendComponent(base.append(AdventureUtil.legacyToAdventure(player.getDisplayName())).append(Component.text(": " + event.getMessage())));
}
}
}
Expand Down

0 comments on commit d4ecfd2

Please sign in to comment.