Read chat log on the client-side #1851
Unanswered
MasterBroNetwork
asked this question in
Mod Dev Support
Replies: 3 comments
-
ChatMessageC2SPacket is C2S (client to server). For the messages sent to client you want GameMessageS2CPacket (S2C = server to client). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Probably the best place to introduce some code is the inGameHud class
You could use an access widener or mixin accessor to allow you to add your own ClientChatListener for MessageType=CHAT |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can get access to the inGameHud instance in your mod's client initializer using
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to read the chat log on the client-side, get the information of the chat log and if it matches a specific message then run some code?
I've been looking into onChatMessage and ChatMessageC2SPacket and stuff but I'm at a dead end, help with this is massively appreciated, thanks.
Beta Was this translation helpful? Give feedback.
All reactions