Desired Servers

Mods
78,563 Downloads Last Updated: Mar 9, 2021 Game Version: Forge

 

Bisect Hosting

If you want a server setup for nearly any mod pack with zero effort, get a server with BisectHosting and receive 25% off your first month as a new customer using the code kreezxil

 

Join atleast of us on Discord right now!

 

From a page that is GPLv3 licensed that sounds very familiar to this.

 


Desired Servers

 

This is a mod that removes the need to ship a servers.dat file that overwrites player-added servers.

Stop shipping that file and add Desired Servers! You can add multiple servers with a simple json format.

 

On first run, the mod will generate a desiredservers.json with the following content if one isn't present:

[
  {
    "serverName": "Desired Server",
    "serverIP": "127.0.0.1"
  },
  {
    "serverName": "Another Desired Server!",
    "serverIP": "192.168.1.1"
  }
]

 Adding a server is as simple as adding another json block with the details.

 

The server is added to the server list on load, if it is already there it will be ignored.

 

Server list JSON

 

Servers in the multiplayer screen

 

The TidBit

The Featured Servers/ folder now lives in the config folder.

 

The What and How

Forge didn't like how the mod was laid out and wanted it to be more like the default example. So I added in some stuff for that. Also the mod was catching way too much stuff with reporting, so I unwrapped that added try/catch clauses where it was absolutely necessary.

 

Other Info

* Same license as the original GPLv3 at https://www.curseforge.com/minecraft/mc-mods/featured-servers

* ported to 1.16.1

* source now available

* client only

Comments

Posts Quoted: