deoxxa / jsmc

Pure JavaScript Minecraft server
Other
82 stars 14 forks source link

Make sure not to announce messages beginning with "/". #10

Closed osslate closed 11 years ago

osslate commented 11 years ago

Differentiate between a command and a normal message.

deoxxa commented 11 years ago

This pull request seems to highlight our need for an interruptible event layer. What really needs to happen is that a command plugin listens for chat messages and prevents the propagation of those that are commands. Despite the logic here being sound, I'm not going to merge it, in favour of implementing issue #11.