summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/InfoReg.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-09-22 12:54:13 +0200
committerMattes D <github@xoft.cz>2016-09-22 12:54:13 +0200
commitaf4e88030bca7bd492596475af5805cc4c1faca6 (patch)
treeea31f6eaed735454e3b0a2d2e4615aced3598647 /Server/Plugins/InfoReg.lua
parentInfoDump: Trim description string before outputting to README.md. (diff)
downloadcuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar.gz
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar.bz2
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar.lz
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar.xz
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.tar.zst
cuberite-af4e88030bca7bd492596475af5805cc4c1faca6.zip
Diffstat (limited to 'Server/Plugins/InfoReg.lua')
-rw-r--r--Server/Plugins/InfoReg.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/Server/Plugins/InfoReg.lua b/Server/Plugins/InfoReg.lua
index 40a5deacf..a605507de 100644
--- a/Server/Plugins/InfoReg.lua
+++ b/Server/Plugins/InfoReg.lua
@@ -159,7 +159,9 @@ function RegisterPluginInfoCommands()
end
-- Loop through all commands in the plugin info, register each:
- RegisterSubcommands("", g_PluginInfo.Commands, 1)
+ if (g_PluginInfo.Commands) then
+ RegisterSubcommands("", g_PluginInfo.Commands, 1)
+ end
end
@@ -190,7 +192,9 @@ function RegisterPluginInfoConsoleCommands()
end
-- Loop through all commands in the plugin info, register each:
- RegisterSubcommands("", g_PluginInfo.ConsoleCommands, 1)
+ if (g_PluginInfo.ConsoleCommands) then
+ RegisterSubcommands("", g_PluginInfo.ConsoleCommands, 1)
+ end
end