mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Chatcommand: Show help message if func returns false without message
#9440
This commit is contained in:
parent
947466ab28
commit
4b423ee9b1
2 changed files with 13 additions and 2 deletions
|
@ -7949,6 +7949,8 @@ Used by `minetest.register_chatcommand`.
|
|||
|
||||
func = function(name, param),
|
||||
-- Called when command is run. Returns boolean success and text output.
|
||||
-- Special case: The help message is shown to the player if `func`
|
||||
-- returns false without a text output.
|
||||
}
|
||||
|
||||
Note that in params, use of symbols is as follows:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue