summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-20 10:05:13 +0200
committerMattes D <github@xoft.cz>2015-06-20 10:05:13 +0200
commitcbb40c3e74c47a881c7e791d54835d4b3ff16d7a (patch)
treeba3fe864ba0dd065433e7b1dc0ea716a7a34e0cb /MCServer
parentMerge pull request #2255 from cuberite/LoadablePieces (diff)
downloadcuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar.gz
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar.bz2
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar.lz
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar.xz
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.tar.zst
cuberite-cbb40c3e74c47a881c7e791d54835d4b3ff16d7a.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/InfoDump.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua
index a715c9a18..2c7fff163 100644
--- a/MCServer/Plugins/InfoDump.lua
+++ b/MCServer/Plugins/InfoDump.lua
@@ -136,7 +136,7 @@ local function BuildCategories(a_PluginInfo)
-- For each command add a reference to it into all of its categories:
local function AddCommands(a_CmdPrefix, a_Commands)
- for cmd, info in pairs(a_Commands) do
+ for cmd, info in pairs(a_Commands or {}) do
local NewCmd =
{
CommandString = a_CmdPrefix .. cmd,
@@ -451,7 +451,7 @@ local function BuildPermissions(a_PluginInfo)
-- Collect all used permissions from Commands, reference the commands that use the permission:
local Permissions = a_PluginInfo.Permissions or {}
local function CollectPermissions(a_CmdPrefix, a_Commands)
- for cmd, info in pairs(a_Commands) do
+ for cmd, info in pairs(a_Commands or {}) do
CommandString = a_CmdPrefix .. cmd
if ((info.Permission ~= nil) and (info.Permission ~= "")) then
-- Add the permission to the list of permissions: