summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/InfoReg.lua
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-17 17:44:34 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-17 17:44:34 +0100
commit90ab055eab62b35a8ddc681e6d79aa1d42afae9f (patch)
treeb71798809ca05c1d904a18083a8c652a4954306a /MCServer/Plugins/InfoReg.lua
parentMade buffers static const (diff)
parentFixed double to float conversions. (diff)
downloadcuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar.gz
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar.bz2
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar.lz
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar.xz
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.tar.zst
cuberite-90ab055eab62b35a8ddc681e6d79aa1d42afae9f.zip
Diffstat (limited to 'MCServer/Plugins/InfoReg.lua')
-rw-r--r--MCServer/Plugins/InfoReg.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/InfoReg.lua b/MCServer/Plugins/InfoReg.lua
index 1cf68dbed..b3717884a 100644
--- a/MCServer/Plugins/InfoReg.lua
+++ b/MCServer/Plugins/InfoReg.lua
@@ -59,13 +59,13 @@ local function MultiCommandHandler(a_Split, a_Player, a_CmdString, a_CmdInfo, a_
return true;
end
- -- Check if the handler is valid:
+ -- If the handler is not valid, check the next sublevel:
if (Subcommand.Handler == nil) then
if (Subcommand.Subcommands == nil) then
LOG("Cannot find handler for command " .. a_CmdString .. " " .. Verb);
return false;
end
- ListSubcommands(a_Player, Subcommand.Subcommands, a_CmdString .. " " .. Verb);
+ MultiCommandHandler(a_Split, a_Player, a_CmdString .. " " .. Verb, Subcommand, a_Level + 1);
return true;
end