Although chat plugin can send/receive a string to a server, you still need to make a composer/parser to assemble/disassemble the data string.
The sync-function plugin allows you to pass a command to server just like using the function plugin.
First, you should install function plugin and chat plugin.
Here is an example, you can compare it with the example in chat plugin.
The interface of sync-function plugin is similar with function plugin. You set some parameters, then call a function or execute a command string just like in function plugin.
The sync-function plugin will compose these information and send to server. When sync-function received these information from server, it will parse these and pass to the function plugin.
Note that there is a property named "Sync-mode", if "Sync-mode" set to "Stand-alone", sync-function will pass parameters to function plugin directly without sending to network. So that it is possible to create multi/single player(s) game using the same events.