diff options
author | Mattes D <github@xoft.cz> | 2014-11-22 13:31:58 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-22 13:31:58 +0100 |
commit | f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737 (patch) | |
tree | 9892433357e3e2cdb0c11d74ddd3b3c07cfc68f2 /MCServer/Plugins/InfoReg.lua | |
parent | Merge pull request #1594 from mc-server/LargeOakTree (diff) | |
download | cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar.gz cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar.bz2 cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar.lz cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar.xz cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.tar.zst cuberite-f0266c578ea2c2a71e3e8b1ce29dcc7af66cc737.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/InfoReg.lua | 1 |
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 |