Add a way for Lua scripts to send/receive server messages that aren't sent to other clients
Currently, as far as Lua scripting goes, there is no way for a client to send a message to the server, or vice versa, without the same message going to all connected clients. While this isn't usually an issue, it can be in some cases. For instance, if you're implementing something like the login
command, you'll need to take extra steps to prevent hackers from capturing a legitimate user's login and performing a replay attack, when there's no reason other clients should even be receiving this information in the first place.
One way to do this could be to add a new Lua function to send data from the client to the server, or from the server to a single connected node, as well as adding a new hook for receiving these packets.