Fix component appending in social spy (#5650)
fixes #5649 this time it wasn't me!
This commit is contained in:
parent
0d1462a021
commit
d4ecfd2263
|
@ -645,7 +645,7 @@ public class EssentialsPlayerListener implements Listener, FakeAccessor {
|
||||||
final Component base = (user.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers())
|
final Component base = (user.isMuted() && ess.getSettings().getSocialSpyListenMutedPlayers())
|
||||||
? spyer.tlComponent("socialSpyMutedPrefix")
|
? spyer.tlComponent("socialSpyMutedPrefix")
|
||||||
: spyer.tlComponent("socialSpyPrefix");
|
: 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())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue