跳到正文

Use Server Name

作者:noahreinalter

Use the server name instead of the ip to save server related data

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.<br>
It is first initialized when the
ClientPlayConnectionEvents.INIT event is fired but the string can be overwritten<br>
after the firing of the
ServerPlayConnectionEvents.INIT` event.

Currently, supported mods:

常见问题

Use Server Name 支持哪些 Minecraft 版本?

Use Server Name 支持 Minecraft Java 版 1.20–1.21.9,共 8 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Use Server Name 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

noahreinalter 的其他作品

查看全部 →