Expose and document chatcommands as minetest.registered_chatcommands

This commit is contained in:
rubenwardy
2016-12-28 13:01:32 +00:00
parent ca3629637c
commit e8b7179ccd
2 changed files with 11 additions and 9 deletions

View File

@@ -2076,6 +2076,7 @@ Call these functions only at load time!
### Other registration functions
* `minetest.register_chatcommand(cmd, chatcommand definition)`
* Adds definition to minetest.registered_chatcommands
* `minetest.register_privilege(name, definition)`
* `definition`: `"description text"`
* `definition`: `{ description = "description text", give_to_singleplayer = boolean}`