From 7120007cf834180fd6eae8136f3ebf3e3ba7df44 Mon Sep 17 00:00:00 2001 From: ManElevation Date: Fri, 23 Dec 2016 11:34:11 +1000 Subject: [PATCH] Add files via upload --- init.lua | 9 +++++++++ mod.lua | 1 + privs.lua | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 init.lua create mode 100644 mod.lua create mode 100644 privs.lua diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..0044d4a --- /dev/null +++ b/init.lua @@ -0,0 +1,9 @@ +core.register_chatcommand("mods", { + params = "", + description = "List mods installed on the server", + privs = {mods=true}, + func = function(name, param) + return true, table.concat(core.get_modnames(), ", ") + end, +}) + diff --git a/mod.lua b/mod.lua new file mode 100644 index 0000000..5445dd6 --- /dev/null +++ b/mod.lua @@ -0,0 +1 @@ +name = mods \ No newline at end of file diff --git a/privs.lua b/privs.lua new file mode 100644 index 0000000..5878b88 --- /dev/null +++ b/privs.lua @@ -0,0 +1,8 @@ + + +minetest.register_chatcommand("mods", { + params = "mods = true", + description = S("This Privigile lets you look at the mod names of the instaled mods)"), + privs = {server = true} end, +}) +