[Question]How to identify the admin with a server w/ command

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

[Question]How to identify the admin with a server w/ command

by MineYoshi » Fri Jul 29, 2016 22:55

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?
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Question]How to identify the admin with a server w/ com

by lisacvuk » Fri Jul 29, 2016 22:58

lol, make a priv 'admin', and grant it to administrators.
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Question]How to identify the admin with a server w/ com

by rubenwardy » Fri Jul 29, 2016 23:01

Type /admin to see the owner of the server.

Do not create a priv called admin, that is an abuse of the privilege system. Privileges should give you the right or permission to do something, not indicate your role or class
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [Question]How to identify the admin with a server w/ com

by MineYoshi » Fri Jul 29, 2016 23:05

...

I noticed that there is a "server" priv...

What i want to do is that only someone with "server" priv can use a command likely "/admin_center"..
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Question]How to identify the admin with a server w/ com

by rubenwardy » Fri Jul 29, 2016 23:08

You should make a new priv, say admintool. That priv should allow you to use the admin pickaxe you create
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Question]How to identify the admin with a server w/ com

by lisacvuk » Fri Jul 29, 2016 23:08

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_chatcommand("admin_center", {
   description = "Testing...",
   privs = {server = true},
   func = function(name)
      minetest.chat_send_all("COOKIES!")
})
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [Question]How to identify the admin with a server w/ com

by MineYoshi » Fri Jul 29, 2016 23:10

thanks for the help!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Question]How to identify the admin with a server w/ com

by lisacvuk » Fri Jul 29, 2016 23:12

np lol, just open Minetest Game/mods/sethome/init.lua
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron