Go to file
DS-Minetest a5e566fc7a (try to) improve performance 2017-07-24 16:18:47 +02:00
README.md (try to) improve performance 2017-07-24 16:18:47 +02:00
description.txt first commit 2017-06-05 15:37:55 +02:00
init.lua (try to) improve performance 2017-07-24 16:18:47 +02:00
license.txt add license 2017-06-05 16:25:13 +02:00
mod.conf first commit 2017-06-05 15:37:55 +02:00

README.md

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.