Register missing sync listeners

This commit is contained in:
Draycia committed 2020-11-07 02:06:34 -08:00
1 parent 98d7501ee0
commit 778f4939d1
1 file changed
+8
@@ -152,6 +152,14 @@ public class MessageManager {
"target", target.displayName(), "sender", sender.displayName()));
}
});
this.messageService().registerUserMessageListener("custom-chat-color-reset", (user, byteArray) -> {
user.customChatColor(null, true);
});
this.messageService().registerUserMessageListener("custom-chat-color", (user, byteArray) -> {
user.customChatColor(TextColor.fromHexString(byteArray.readUTF()), true);
});
}
public @NonNull MessageService messageService() {