Make "has left the chat room" sent to the correct channel

This commit is contained in:
Minecon724 2024-12-05 20:24:33 +01:00
parent 6183ccd6bf
commit 94f6b62a28
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -95,7 +95,7 @@ public class ChatManager {
playerMap.put(player, chatRoom); playerMap.put(player, chatRoom);
chatRoom.players.add(player); chatRoom.players.add(player);
chatRoom.broadcast( oldRoom.broadcast(
new ComponentBuilder() new ComponentBuilder()
.append(ChatFormatUtils.chatRoomPrefixShort(chatRoom)) .append(ChatFormatUtils.chatRoomPrefixShort(chatRoom))
.append(ChatFormatUtils.formatPlayer(player)) .append(ChatFormatUtils.formatPlayer(player))