From e7706593c6cbbab97667387e7c6cdb493ec2a98d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Wed, 29 Jan 2014 18:27:05 -0500 Subject: Add success and output return values to chat commands --- doc/lua_api.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 803314925..f4e1fd230 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2543,10 +2543,11 @@ Decoration definition (register_decoration) Chatcommand definition (register_chatcommand) { - params = " ", -- 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 = " ", -- 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 -- cgit v1.2.3