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.