summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r--MCServer/Plugins/TestLuaRocks/TestLuaRocks.lua49
m---------MCServer/Plugins/TransAPI6
2 files changed, 6 insertions, 49 deletions
diff --git a/MCServer/Plugins/TestLuaRocks/TestLuaRocks.lua b/MCServer/Plugins/TestLuaRocks/TestLuaRocks.lua
deleted file mode 100644
index 6e90b1ae9..000000000
--- a/MCServer/Plugins/TestLuaRocks/TestLuaRocks.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-
--- TestLuaRocks.lua
-
--- This is a mockup plugin that does a quick test of LuaRocks capability in MCServer
-
--- "Success" is when the plugin loads, downloads the forum webpage and displays the headers and length and then displays both libs as loaded.
--- "Failure" usually manifests as one of the "require" lines failing, although you have the luarock installed.
--- Note that the plugin deliberately never fully loads, so that it can be reloaded fast by pressing its Enable button in the webadmin's plugin list.
-
-
-
-
-
-
-local log30 = require("30log");
-local socket = require("socket");
-local http = require("socket.http");
-
-
-
-
-
-LOGINFO("Trying to download a webpage...");
-local body, code, headers = http.request('http://forum.mc-server.org/index.php');
-LOG("code: " .. tostring(code));
-LOG("headers: ");
-for k, v in pairs(headers or {}) do
- LOG(" " .. k .. ": " .. v);
-end
-LOG("body length: " .. string.length(body));
-
-
-
-
-
-function Initialize(a_Plugin)
- if (socket == nil) then
- LOG("LuaSocket not found");
- else
- LOG("LuaSocket loaded");
- end
- if (log30 == nil) then
- LOG("30log not found");
- else
- LOG("30log loaded");
- end
- LOGINFO("Preventing plugin load so that it may be requested again from the webadmin.");
- return false;
-end \ No newline at end of file
diff --git a/MCServer/Plugins/TransAPI b/MCServer/Plugins/TransAPI
-Subproject da272372406e0990235b008dba73b7bfbda040e
+Subproject 52e1de4332a026e58fda843aae98c1f51e57199