Fix component appending in social spy (#5650)

fixes #5649

this time it wasn't me!
This commit is contained in:
Josh Roy 2024-02-05 13:15:13 -05:00 committed by GitHub
parent 0d1462a021
commit d4ecfd2263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ public class EssentialsPlayerListener implements Listener, FakeAccessor {
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())));
}
}
}