mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Chatcommand: Show help message if func returns false without message
#9440
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user