CSM: Fix documentation error for register_on_*_chat_messages (#5917)
This commit is contained in:
@@ -648,10 +648,10 @@ Call these functions only at load time!
|
||||
semi-frequent intervals as well as on server shutdown.
|
||||
* `minetest.register_on_connect(func())`
|
||||
* Called at the end of client connection (when player is loaded onto map)
|
||||
* `minetest.register_on_receiving_chat_message(func(name, message))`
|
||||
* `minetest.register_on_receiving_chat_message(func(message))`
|
||||
* Called always when a client receive a message
|
||||
* Return `true` to mark the message as handled, which means that it will not be shown to chat
|
||||
* `minetest.register_on_sending_chat_message(func(name, message))`
|
||||
* `minetest.register_on_sending_chat_message(func(message))`
|
||||
* Called always when a client send a message from chat
|
||||
* Return `true` to mark the message as handled, which means that it will not be sent to server
|
||||
* `minetest.register_chatcommand(cmd, chatcommand definition)`
|
||||
@@ -676,7 +676,7 @@ Call these functions only at load time!
|
||||
* Called when the local player punches a node
|
||||
* Newest functions are called first
|
||||
* If any function returns true, the punch is ignored
|
||||
* `minetest.register_on_placenode(function(pointed_thing, node))`
|
||||
* `minetest.register_on_placenode(function(pointed_thing, node))`
|
||||
* Called when a node has been placed
|
||||
* `minetest.register_on_item_use(func(item, pointed_thing))`
|
||||
* Called when the local player uses an item.
|
||||
|
Reference in New Issue
Block a user