Skip to content
Snippets Groups Projects
Commit 0e75eb43 authored by Splizard's avatar Splizard Committed by est31
Browse files

Add admin command which says who the administator is for the server.

parent c4e0d95c
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,18 @@ core.register_chatcommand("me", {
end,
})
core.register_chatcommand("admin", {
description = "Show the name of the server owner",
func = function(name)
local admin = minetest.setting_get("name")
if admin then
return true, "The administrator of this server is "..admin.."."
else
return false, "There's no administrator named in the config file."
end
end,
})
core.register_chatcommand("help", {
privs = {},
params = "[all/privs/<cmd>]",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment