This mod gives server- and client-mods the possibility to communicate.
It should be installed on server and client.
Added functions are:
For client:
csm_com.register_on_receive(func(msg)[, prefix])prefix should be a string. Try not to use many different prefixes,
one per mod should be enough.
If function returns true, remaining functions are not called.
csm_com.send(msg)
csm_com.server_has()
returns true if server has this mod installed
csm_com.register_on_know(func())
Called when csm_com.server_has() becomes true.
For server:
csm_com.register_on_receive(func(player_name, msg)[, prefix])
same as above.
csm_com.send(player_name, msg)
csm_com.player_has(player_name)
returns true if player has this mod installed
csm_com.register_on_know(func(player_name))
same as above.
About
[(Client)Mod] Server-, Client-Mod Communication [csm_com]