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, +}) +