Use Server Name
Have you ever used a mod that saves data locally when playing on a server, but you use a server that regularly changes IP? If yes this mod is for you, as long as you use the same server name in the multiplayer join screen all your data will still be there.
For server owners
Add the mod to the server so the users don't have to fiddle with configuration and can just connect.
You can change to server name in the config file under ./config/useservername.json5.
For modpack makers
Add the mod for both sides, and you don't need to adjust the config as the servername is randomly generated on the first lauche of the server.
For modders
Don't add this mod as a dependency, use the objectShare and use the string you can get from
(String) objectShare.get(useservername:serverId). The string can be null.
It is first initialized when the ClientPlayConnectionEvents.INIT event is fired but the string can be overwritten
after the firing of the ServerPlayConnectionEvents.INIT event.
Currently, supported mods:
How to Install Use Server Name (Mod)
Use Server Name by noahreinalter is verified for Fabric, Quilt across Minecraft versions 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1, 1.21.9 (latest release: 2.6.0+mc1.21.9, file size: 36 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1, 1.21.9) and platform (Fabric, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Quilt.
- Move the downloaded Use Server Name file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Add Distant Horizons support
- Add option to disable mod for specific mods