summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-08 23:13:43 +0200
committermadmaxoft <github@xoft.cz>2014-08-08 23:13:43 +0200
commit251f0d5b97bc36fa3c335bf6a1b03aa22503fa47 (patch)
tree13b57565ec1ac972833e4e2a387ebbf3f8f955c0 /MCServer/Plugins
parentExported cRankManager to LuaAPI. (diff)
downloadcuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar.gz
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar.bz2
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar.lz
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar.xz
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.tar.zst
cuberite-251f0d5b97bc36fa3c335bf6a1b03aa22503fa47.zip
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 7e220952e..a87511fb9 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -81,6 +81,7 @@ function Initialize(Plugin)
TestBlockAreasString()
TestStringBase64()
TestUUIDFromName()
+ TestRankMgr()
--[[
-- Test cCompositeChat usage in console-logging:
@@ -352,6 +353,18 @@ end
+function TestRankMgr()
+ LOG("Testing the rank manager")
+ cRankManager:AddRank("LuaRank")
+ cRankManager:AddGroup("LuaTestGroup")
+ cRankManager:AddGroupToRank("LuaTestGroup", "LuaRank")
+ cRankManager:AddPermissionToGroup("luaperm", "LuaTestGroup")
+end
+
+
+
+
+
function TestSQLiteBindings()
LOG("Testing SQLite bindings...");