1
0
Fork 0
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:
ShadowNinja 2014-01-29 18:27:05 -05:00
parent 832d7973c8
commit e7706593c6
2 changed files with 214 additions and 241 deletions

View file

@ -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