mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 07:02:23 +01:00
Add admin command which says who the administator is for the server.
This commit is contained in:
parent
c4e0d95c87
commit
0e75eb4324
@ -84,6 +84,18 @@ core.register_chatcommand("me", {
|
|||||||
end,
|
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", {
|
core.register_chatcommand("help", {
|
||||||
privs = {},
|
privs = {},
|
||||||
params = "[all/privs/<cmd>]",
|
params = "[all/privs/<cmd>]",
|
||||||
|
Loading…
Reference in New Issue
Block a user