Computronics icon indicating copy to clipboard operation
Computronics copied to clipboard

Extended ChatBox events

Open linuxdaemon opened this issue 8 years ago • 5 comments

Currently the chatbox only fires an event when a normal chat message is sent, not including when a player uses /me, gets an achievement, dies, or joins/leaves the game, all of which appear to an actual player in chat.

linuxdaemon avatar Jul 19 '17 06:07 linuxdaemon

I am not sure whether those should actually fire events (some of these aren't easily doable, anyway). The chat box really is for chat messages sent by players.

Vexatos avatar Jul 19 '17 06:07 Vexatos

Well /me is generally regarded as a chat message.

linuxdaemon avatar Jul 19 '17 06:07 linuxdaemon

And the one thing I cannot easily read. It's not an ordinary chat message but a command, which makes it difficult.

Vexatos avatar Jul 19 '17 06:07 Vexatos

Yeah, I think out of all the things I mentioned, it's the only one that doesn't actually fire a standard event as far as I know.

linuxdaemon avatar Jul 19 '17 06:07 linuxdaemon

@Vexatos There is a Forge Event for commands: CommandEvent. That may help with the /me command. I don't do modding, so I may be way off base here, though.

brisingraerowing avatar Aug 12 '17 19:08 brisingraerowing