SChatPacket: system message
This commit is contained in:
@@ -131,7 +131,15 @@ public class PacketHandler {
|
|||||||
chatPacket.setMessage(Text.of("== Hello! =="));
|
chatPacket.setMessage(Text.of("== Hello! =="));
|
||||||
chatPacket.setPosition(ChatPosition.CHAT);
|
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) {
|
private static String faviconToBase64(Path iconPath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user