Archived
0

SChatPacket: system message

This commit is contained in:
2021-05-08 18:36:34 +03:00
parent 47e6c3e76f
commit 68a288c525

View File

@@ -131,7 +131,15 @@ public class PacketHandler {
chatPacket.setMessage(Text.of("== Hello! =="));
chatPacket.setPosition(ChatPosition.CHAT);
context.sendNow(chatPacket);
context.send(chatPacket);
var systemChatPacket = new SChatPacket();
systemChatPacket.setMessage(Text.of("[SYSTEM]"));
systemChatPacket.setPosition(ChatPosition.SYSTEM);
context.send(systemChatPacket);
context.flushSending();
}
private static String faviconToBase64(Path iconPath) {