mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Expose and document chatcommands as minetest.registered_chatcommands
This commit is contained in:
parent
ca3629637c
commit
e8b7179ccd
2 changed files with 11 additions and 9 deletions
|
@ -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}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue