mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add success and output return values to chat commands
This commit is contained in:
parent
832d7973c8
commit
e7706593c6
2 changed files with 214 additions and 241 deletions
|
@ -2543,10 +2543,11 @@ Decoration definition (register_decoration)
|
|||
|
||||
Chatcommand definition (register_chatcommand)
|
||||
{
|
||||
params = "<name> <privilege>", -- short parameter description
|
||||
description = "Remove privilege from player", -- full description
|
||||
privs = {privs=true}, -- require the "privs" privilege to run
|
||||
func = function(name, param), -- called when command is run
|
||||
params = "<name> <privilege>", -- Short parameter description
|
||||
description = "Remove privilege from player", -- Full description
|
||||
privs = {privs=true}, -- Require the "privs" privilege to run
|
||||
func = function(name, param), -- Called when command is run.
|
||||
-- Returns boolean success and text output.
|
||||
}
|
||||
|
||||
Detached inventory callbacks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue