diff options
author | Pierre-Adrien Langrognet <upsilon@langg.net> | 2017-05-21 23:06:51 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-21 23:06:51 +0200 |
commit | 39f4a2f607d44738d60db84eba4b30e3d7450204 (patch) | |
tree | 63a72301d3c53917b99fe0607f48219372f85b6f /doc | |
parent | ec490abf5889e06c88887e17f1746043de3b10fe (diff) | |
download | minetest-39f4a2f607d44738d60db84eba4b30e3d7450204.tar.gz minetest-39f4a2f607d44738d60db84eba4b30e3d7450204.tar.bz2 minetest-39f4a2f607d44738d60db84eba4b30e3d7450204.zip |
[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)
* [CSM] Add send_chat_message and run_server_chatcommand API functions
* Add client-side chat message rate limiting
* Limit out chat queue size
* [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand
* Last fixes/cleanups before merge
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index ce0746df4..b3e494cc1 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -721,6 +721,12 @@ Call these functions only at load time! ### Player * `minetest.get_wielded_item()` * Returns the itemstack the local player is holding +* `minetest.send_chat_message(message)` + * Act as if `message` was typed by the player into the terminal. +* `minetest.run_server_chatcommand(cmd, param)` + * Alias for `minetest.send_chat_message("/" .. cmd .. " " .. param)` +* `minetest.clear_out_chat_queue()` + * Clears the out chat queue * `minetest.localplayer` * Reference to the LocalPlayer object. See [`LocalPlayer`](#localplayer) class reference for methods. @@ -836,7 +842,7 @@ Please do not try to access the reference until the camera is initialized, other * Returns with same syntax as above * `get_fov()` * Returns: - + ```lua { x = number, @@ -845,7 +851,7 @@ Please do not try to access the reference until the camera is initialized, other actual = number } ``` - + * `get_pos()` * Returns position of camera with view bobbing * `get_offset()` |