Skip to content
Permalink
Browse files

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

  • Loading branch information
Splizard authored and est31 committed Feb 4, 2016
1 parent c4e0d95 commit 0e75eb4324ba71c3d685b2f22a8a36b3aa0c9ef5
Showing with 12 additions and 0 deletions.
  1. +12 −0 builtin/game/chatcommands.lua
@@ -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 comments on commit 0e75eb4

Please sign in to comment.