使用服务器名称
你是否遇到过这样的情况:在服务器上玩某个模组时,数据会保存在本地,但你使用的服务器 IP 经常变动? 如果是这样,那么这个模组就是为你准备的。只要你在多人游戏加入界面中使用相同的服务器名称,你的所有数据都会保留。
对于服务器管理员
将模组添加到服务端,这样用户无需手动调整配置即可直接连接。
你可以在 ./config/useservername.json5 配置文件中的更改服务器名称。
对于整合包制作者
将模组同时添加到客户端和服务端,你无需调整配置,因为服务器名称会在服务器首次启动时随机生成。
对于模组开发者
不要将此模组作为依赖项添加,请使用 objectShare 并通过以下代码获取字符串:
(String) objectShare.get(useservername:serverId)。该字符串可能为 null。
它会在触发 ClientPlayConnectionEvents.INIT 事件时初始化,但在 ServerPlayConnectionEvents.INIT 事件触发后,该字符串可能会被覆盖。
目前支持的模组:
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:
下载 Use Server Name
下载 Use Server Name
下载 Use Server Name
下载 Use Server Name
下载 Use Server Name
下载 Use Server Name
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Use Server Name
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Use Server Name
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Use Server Name
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Use Server Name
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新到 Minecraft 版本 1.21.9
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧