diff options
author | NiLSPACE <niels.breuker@hotmail.nl> | 2015-11-29 17:28:02 +0100 |
---|---|---|
committer | NiLSPACE <niels.breuker@hotmail.nl> | 2015-11-29 17:28:02 +0100 |
commit | 93afb6398de67407f91664ce10f4ad4cbb28496c (patch) | |
tree | 263d482e9ea078c2c37020215042a46648cf8b18 | |
parent | Merge pull request #2693 from cuberite/NormalizeOrePocketConfigNames (diff) | |
download | cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar.gz cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar.bz2 cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar.lz cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar.xz cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.tar.zst cuberite-93afb6398de67407f91664ce10f4ad4cbb28496c.zip |
Diffstat (limited to '')
-rw-r--r-- | Server/Plugins/DumpInfo/Init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Server/Plugins/DumpInfo/Init.lua b/Server/Plugins/DumpInfo/Init.lua index 2c5998e36..8b328c862 100644 --- a/Server/Plugins/DumpInfo/Init.lua +++ b/Server/Plugins/DumpInfo/Init.lua @@ -3,7 +3,7 @@ function Initialize(a_Plugin) a_Plugin:SetVersion(1) -- Check if the infodump file exists. - if (not cFile:Exists("Plugins/InfoDump.lua")) then + if (not cFile:IsFile("Plugins/InfoDump.lua")) then LOGWARN("[DumpInfo] InfoDump.lua was not found.") return false end @@ -36,7 +36,7 @@ function HandleDumpPluginRequest(a_Request) cPluginManager:Get():ForEachPlugin( function(a_Plugin) -- Check if there is a file called 'Info.lua' - if (cFile:Exists("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then + if (cFile:IsFile("Plugins/" .. a_Plugin:GetName() .. "/Info.lua")) then Content = Content .. "\n<tr>\n" Content = Content .. "\t<td>" .. a_Plugin:GetName() .. "</td>\n" Content = Content .. "\t<td><form method='POST'> <input type='hidden' value='" .. a_Plugin:GetName() .. "' name='DumpInfo'> <input type='submit' value='DumpInfo'></form></td>\n" |