I wanna mean, if you type /help_admin, and you are the admin you get by example a golden pickaxe
But if you aren't you get a message likely: "You aren't the admin!"...
How do i do this?
minetest.register_chatcommand("admin_center", {
description = "Testing...",
privs = {server = true},
func = function(name)
minetest.chat_send_all("COOKIES!")
})
Users browsing this forum: No registered users and 9 guests