summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-23 12:33:04 +0100
committerMattes D <github@xoft.cz>2014-11-23 12:33:04 +0100
commite9797c6a2a78d1caedc6cc2b6620b34e18a8b41f (patch)
tree2aabeb2ff85f9d8951b9837e132e4dabed9d6108 /MCServer
parentcWorld: Changed generator defaults. (diff)
parentMerge pull request #1612 from p-mcgowan/pigsIntoZombiePigmenOnLightning (diff)
downloadcuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar.gz
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar.bz2
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar.lz
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar.xz
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.tar.zst
cuberite-e9797c6a2a78d1caedc6cc2b6620b34e18a8b41f.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/InfoReg.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/InfoReg.lua b/MCServer/Plugins/InfoReg.lua
index da5a9972c..92c4a2e59 100644
--- a/MCServer/Plugins/InfoReg.lua
+++ b/MCServer/Plugins/InfoReg.lua
@@ -51,6 +51,7 @@ local function MultiCommandHandler(a_Split, a_Player, a_CmdString, a_CmdInfo, a_
return a_CmdInfo.Handler(a_Split, a_Player);
end
-- Let the player know they need to give a subcommand:
+ assert(type(a_CmdInfo.Subcommands) == "table", "Info.lua error: There is no handler for command \"" .. a_CmdString .. "\" and there are no subcommands defined at level " .. a_Level)
ListSubcommands(a_Player, a_CmdInfo.Subcommands, a_CmdString);
return true;
end