Page 1 of 1

Using Minetest in a school

PostPosted: Fri Jul 10, 2015 15:49
by cailseducation
I think there are many benefits of using Minetest in a school and would like to develop and share resources for teachers to use in class. I'm even looking at coding to create mods.
My one concern is that it's too easy to access public servers and this is an e-safety risk for schools. Does anyone know how to disable the public servers tab. I know that the ip addresses can be individually blocked but this isn't reliable as new ones appear frequently.

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 16:28
by lag01
In minetest.conf you can change
serverlist_url =
to your own server list(i am not sure how to make one, but code is available at github) or just to
serverlist_url = localhost
And also block outgoing port 30000-30099 on schools router.

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 16:34
by rubenwardy

Remove public server list



This gets rid of the public server list, but doesn't disable multiplayer - the user can still connect to a server if they know its IP address.

Go to minetest/builtin/tab_multiplayer.lua
Delete a line like this: "checkbox[0,4.85;cb_public_serverlist;" .. fgettext("Public Serverlist") .. ";" ..
(it is line 29 in my file)

Replace

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
if core.setting_getbool("public_serverlist") then
   asyncOnlineFavourites()
else
   menudata.favorites = core.get_favorites("local")
end


with
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
if core.setting_getbool("public_serverlist") then
   core.setting_set("public_serverlist", "false")
   menudata.favorites = core.get_favorites("local")
end


or Remove multiplayer



This hides all multiplayer join/start from the mainmenu. It is still possible to join a multiplayer game using the command line ("minetest --address redcrab.suret.net --port 30401 --go") to stop this, you'll need to add 30000 - 30100 to your firewall.

Go to minetest/builtin/mainmenu/init.lua

Remove the following lines:

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
tv_main:add(tab_multiplayer)
tv_main:add(tab_server)


near line 129.

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 17:41
by cailseducation
Brilliant, I'll give this a try

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 18:09
by rubenwardy
Note that if you do the second one ("Remove multiplayer") there is no point doing the first ("Remove public server list")

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 19:11
by cailseducation
Ok great thanks, does this mean that with online servers disabled local servers can still be used, ie on the same network. Hopefully that's the case.

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 19:29
by ExeterDad
cailseducation wrote:Ok great thanks, does this mean that with online servers disabled local servers can still be used, ie on the same network. Hopefully that's the case.

Yes. But the users will have to manually type in the ip address and port number of the local server(s)for the first login of each one. Then the ip address(s) will appear in the list for later logins.

Just keep in mind. If users learn the ip addresses of the public servers... they will still be able to join them. They are just "invisible."

Re: Using Minetest in a school

PostPosted: Fri Jul 10, 2015 20:11
by cailseducation
Yes, that's fine, I don't think that will be an issue, no less so than internet access. As lonk as they can't easily look at a list of servers on minetest. I can already create local servers using the computer name, eg room4-12 as the PC name on the network. Thanks for all the help.