#MyServer
缩小“多人游戏”按钮,并将其替换为一个连接至已配置服务器的按钮,置于显眼位置。灵感来源于 Auto Connect To Multiplayer Server,但实现方式略有不同!

这是什么?
“加入服务器”按钮可直接连接到已配置的服务器(可通过 Mod Menu 进行配置,或编辑 myserver.json 文件)。从该服务器断开连接后,将返回主菜单。
服务器资源包可以配置为自动接受(默认)或在加入时提示。此模组专为绑定特定服务器的整合包设计,其运行行为完全可控。
若要连接到其他服务器,仍可通过放大镜按钮访问常规的多玩家菜单。
此外,对于仅允许玩家连接至某一特定服务器的场景,可以通过配置文件临时禁用“单人游戏”按钮。

工作原理?
这是一个包含两个 mixin 的模组,它会缩小“多人游戏”按钮的宽度并调整其位置,然后在原处创建一个新的按钮。如果进行了相应配置,它还会禁用“单人游戏”按钮。就是这么简单!
为什么?
对于那些专为配合特定服务器而设计的整合包而言,提供对整个多玩家菜单的访问可能并非必要。同样,分发一个脆弱的 servers.dat 文件容易引发问题,无论是面向用户的问题(每次更新都会覆盖服务器列表),还是面向开发者的问题(服务器未能成功添加到列表中)。
本模组提供了一种无需手动操作服务器列表即可配置服务器的独立方式。覆盖配置文件是安全的,因为普通玩家不应自行修改该文件。
常见问题
会移植到更多加载器吗?
未来可能会。
会移植到更多 Minecraft 版本吗?
未来可能会。
#MyServer
Shrinks the "Multiplayer" button, and replaces it with one to connect to a configured server, front-and-center. Inspired by Auto Connect To Multiplayer Server, but does things a bit different!

What?
The "Join Server" button connects directly to the configured server (configurable through Mod Menu, or by editing myserver.json). Disconnecting from this server will return to the title screen.
Server resource packs can be configured to automatically be accepted (default) or prompt on join. This mod is designed for mod packs tied to a specific server, where its behavior is entirely known.
To connect to a different server, the regular multi-player menu can still be accessed via the magnifying glass button.
Additionally, for servers that intend only for players to connect to a server, the "Singleplayer" button can be disabled temporarily through the configuration file.

How?
This is a two-mixin mod that reduces the width and positioning of the "Multiplayer" button, then creates a new one in its place. If configured to, it disables the "Singleplayer" button as well. Simple as that!
Why?
For mod packs that are designed for use with a specific server in mind, access to the entire multi-player menu might not be desirable. Similarly, shipping a brittle servers.dat file can easily cause issues, either user-facing (servers list getting overwritten every update) or developer-facing (server not getting added to the list).
This mod provides a separate way to configure a server without finangling with the server list itself. Overwriting the config file is safe, as no player should be modifying it themselves.
FAQ
Will this be ported to more mod loaders?
In the future, probably.
Will this be ported to more Minecraft versions?
In the future, probably.
评论 0
登录后参与评分
还没有评论,来抢沙发吧