Page 1 of 1
How to disable admin feature in local game ?

Posted:
Sat May 09, 2015 17:25
by mahmutelmas06
Hi guys
I have 2 computer and my little sisters plays minetest together. But as you know host computer is admin and other one is just user. I know how to make a user as admin but i want no admin at all.
Re: How to disable admin feature in local game ?

Posted:
Sat May 09, 2015 20:38
by red
You want to stop the user using the host computer from using chat commands like giveme?
Use the chat command revoke.
Re: How to disable admin feature in local game ?

Posted:
Sat May 09, 2015 20:49
by mahmutelmas06
I want to take away all admin privileges from host computer.
Such us doubletap jump Flying , unlimited inventory, breaking other users protected nodes
But i cant revoke admins own permissions right ?
Re: How to disable admin feature in local game ?

Posted:
Sat May 09, 2015 22:13
by rubenwardy
I'm going to assume you use windows.
Create a file called mtserver.bat in the bin folder with notepad or another plaintext editor, the same way as if you're editing minetest.conf. give it this content:
minetest.exe --server --worldname World1
Change world1 to the name of your world.
You need to run the server with a player name in minetest.conf different to the player names you're logging in as. So edit the minetest.conf before running the server.
Open the mtserver.bat file to start the server.
You can now connect on the same computer as a client with the address 127.0.0.1.
Re: How to disable admin feature in local game ?

Posted:
Sat May 09, 2015 23:15
by mahmutelmas06
Thank you very much
Can i start game automatic after creating host ?
For exmp mtserver.bat file
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.exe --server --worldname myworld
timeout 2
minetest.exe --connect 127.0.0.1 --username myname
Re: How to disable admin feature in local game ?

Posted:
Sun May 10, 2015 06:28
by Krock
mahmutelmas06 wrote:Can i start game automatic after creating host ?
That's possible but note: The server process will stop the script until it gets shut down/closed.
Your client would start after the server closed.
Use this one:
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
start minetest.exe --server --worldname myworld
<wait for ~5s if possible>
minetest.exe --address 127.0.0.1 --name myname --password mypass
Re: How to disable admin feature in local game ?

Posted:
Sun May 10, 2015 13:12
by rubenwardy
Don't forget --go to skip the menu.
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
start minetest.exe --server --worldname myworld --name admin
ping 192.0.2.2 -n 1 -w 5000 > nul
minetest.exe --address 127.0.0.1 --name myname --password mypass --go
The ping line waits for 5 seconds (192.0.2.2 won't exist, so times out)
Re: How to disable admin feature in local game ?

Posted:
Sun May 10, 2015 13:18
by mahmutelmas06
That information is so usefull and will make my life easier :D
Thank you both of you.