aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2016-10-16 17:35:07 +0100
committersfan5 <sfan5@live.de>2017-09-11 20:54:07 +0200
commitd10cccee3108b45cf7085ffdbff9b5f2a4045ea7 (patch)
treeeecf15cbb9e096d5ff80415a30f2dd6819af40f0 /doc
parentbb225672f97eecc5c8e09a702d7412748bbfb37d (diff)
downloadminetest-d10cccee3108b45cf7085ffdbff9b5f2a4045ea7.tar.gz
minetest-d10cccee3108b45cf7085ffdbff9b5f2a4045ea7.tar.bz2
minetest-d10cccee3108b45cf7085ffdbff9b5f2a4045ea7.zip
Allow the join/leave message to be overridden by mods.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ef62f1356..6bdb63ef3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3071,6 +3071,10 @@ These functions return the leftover itemstack.
* Replaces definition of a builtin hud element
* `name`: `"breath"` or `"health"`
* `hud_definition`: definition to replace builtin definition
+* `minetest.send_join_message(player_name)`
+ * Can be overridden by mods to change the join message
+* `minetest.send_leave_message(player_name, timed_out)`
+ * Can be overridden by mods to change the leave message
* `minetest.hash_node_position({x=,y=,z=})`: returns an 48-bit integer
* Gives a unique hash number for a node position (16+16+16=48bit)
* `minetest.get_position_from_hash(hash)`: returns a position