summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-16 21:30:44 +0100
committermadmaxoft <github@xoft.cz>2014-03-16 21:37:33 +0100
commit4227066f6d564a0e816b190f2726f036bff5b34d (patch)
tree342d9244cfa659feb98010bc4a2e24ee5b5803da /MCServer
parentRemoved the @EnableMobDebug.lua file. (diff)
downloadcuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar.gz
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar.bz2
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar.lz
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar.xz
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.tar.zst
cuberite-4227066f6d564a0e816b190f2726f036bff5b34d.zip
Diffstat (limited to '')
-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