主要特性
- 在加载世界时自动发布为多人游戏世界。
- 限制访问权限,仅允许好友加入。
- 使用原生服务器命令,如
/whitelist(白名单)和/ban(封禁)。 - 设置其他玩家的默认游戏模式和命令。
配置
全局设置可以添加到 config/alwaysmultiplayer.json 文件中。你也可以在主菜单的 选项... -> 在线... -> Always Multiplayer Config... 中找到这些设置。
| 设置项 | 默认值 | 描述 |
|---|---|---|
multiplayer |
LAN |
设置为 LAN 可默认将所有单人世界发布到局域网(或通过端口转发或其他模组发布到互联网)。设置为 OFF 则默认保持单人模式。 |
access |
FRIENDS |
谁可以加入你的多人游戏世界。FRIENDS:允许 Minecraft 好友(以及白名单中的玩家)。WHITELIST:仅允许白名单中的玩家。OPEN:允许所有连接。 |
gamemode |
null (自动) |
加入你世界的其他玩家的默认游戏模式。设置为 null 以跟随世界设置,或设置为 SURVIVAL、CREATIVE、ADVENTURE 或 SPECTATOR 以分配全局默认值。 |
forceGamemode |
null (自动) |
是否强制所有其他玩家遵循世界默认的游戏模式,或者是否可以为他们分配其他游戏模式。设置为 null 以遵循世界默认值,或设置为 true 或 false 以分配全局默认值。 |
commands |
null (自动) |
加入你世界的其他玩家的默认命令。设置为 null 以跟随世界设置,或设置为 true 或 false 以分配全局默认值。 |
port |
null (自动) |
仅限局域网世界的默认端口号。设置为 null 以每次自动分配一个空闲端口,或输入 1024 到 65535 之间的数字。 |
命令
所有内置服务器命令均可用,包括 /ban、/whitelist 和 /op。这些命令会在你的配置文件根目录下创建 JSON 文件(不特定于任何世界)。即与 usercache.json 相同的位置。参见示例 whitelist.json。
| 命令 | 描述 | 示例 | 操作员等级 |
|---|---|---|---|
| /whitelist | 将玩家加入白名单,以便在“访问”设置设为 FRIENDS 或 WHITELIST 时允许他们加入。 | /whitelist add Player123 |
3 (管理员) |
| /ban | 禁止玩家加入你的任何世界。还包括 /ban-ip 和 /banlist。 |
/ban Player123 |
3 (管理员) |
| /pardon | 解除玩家的封禁,使他们可以加入你的所有世界。 | /pardon Player123 |
3 (管理员) |
| /op | 使玩家成为 2 级操作员(启用“命令”时默认授予的相同权限)。 | /op Player123 |
3 (管理员) |
| /deop | 移除玩家的操作员权限(除非默认情况下已为其他玩家启用了“命令”)。 | /deop Player123 |
3 (管理员) |
| /perf | 启动性能分析器。 | /perf start |
4 (所有者) |
| /save-all | 保存世界。还包括 /save-off 和 /save-on。 |
/save-all |
4 (所有者) |
| /stop | 停止服务器并断开所有玩家的连接(也可以使用 /unpublish)。 |
/stop |
4 (所有者) |
将局域网世界发布到互联网
P2P 功能已从 26.2 更新中移除(暂时),随之消失的还有单人世界的“在线”多人游戏选项。虽然这使得与朋友连接变得更加困难,但仍可以使用“局域网”多人游戏选项并进行一些额外设置来实现。
- 在你的家庭路由器上创建端口转发规则,将特定端口转发到你的计算机,并让你的朋友使用 你的公网 IP 地址 + 端口号加入,例如
10.1.1.1:5555。 - 或者,使用像 e4mc 这样的模组,该模组会在你将世界发布到局域网时为每次会话分配一个唯一的公共域名。
如果你希望防止意外连接,请确保使用白名单或访问限制。
Key Features
- Publish singleplayer worlds automatically when loading the world.
- Restrict access to friends only.
- Use native server commands like /whitelist and /ban.
- Set default gamemode and commands for other players.
Config
Global settings can be added in config/alwaysmultiplayer.json. These settings can also be found under the Minecraft main menu Options... -> Online... -> Always Multiplayer Config...
| Setting | Default | Description |
|---|---|---|
multiplayer |
LAN |
Set to LAN to open all singleplayer worlds to LAN by default (or to the internet with port forwarding or other mods). Turn OFF to stay in singleplayer by default. |
access |
FRIENDS |
Who can join your multiplayer worlds. FRIENDS: allow Minecraft friends (and whitelisted players). WHITELIST: only allow whitelisted players. OPEN: allow all connections. |
gamemode |
null (Auto) |
The default game mode for other players that join your worlds. Set null to follow the world setting, or set to SURVIVAL, CREATIVE, ADVENTURE, or SPECTATOR to assign a global default. |
forceGamemode |
null (Auto) |
Whether or not all other players are forced to follow the world default game mode, or if they can be assigned another game mode. Set null to follow the world default, or set to true or false to assign a global default. |
commands |
null (Auto) |
The default commands for other players that join your worlds. Set null to follow the world setting, or set to true or false to assign a global default. |
port |
null (Auto) |
The default port number for LAN worlds only. Set null to auto assign a free port each time, or enter a number between 1024 and 65535. |
Commands
All the built in server commands are made available, including /ban /whitelist and /op. These commands create json files at the root of your profile folder (not specific to any world). I.e. the same location as your usercache.json. See example whitelist.json.
| Command | Description | Example | Operator Level |
|---|---|---|---|
| /whitelist | White-list a player to allow them to join when the Access setting is FRIENDS or WHITELIST. | /whitelist add Player123 |
3 (Admin) |
| /ban | Ban a player from joining any of your worlds. Also includes /ban-ip and /banlist. | /ban Player123 |
3 (Admin) |
| /pardon | Unbans a player so they can join all of your worlds. | /pardon Player123 |
3 (Admin) |
| /op | Makes a player a level 2 Operator (the same permissions that enabling 'Commands' gives by default). | /op Player123 |
3 (Admin) |
| /deop | Removes a players Operator permissions (unless 'Commands' are enabled for other players by default). | /deop Player123 |
3 (Admin) |
| /perf | Starts the performance profiler. | /perf start |
4 (Owner) |
| /save-all | Saves the world. Also includes /save-off and /save-on. | /save-all |
4 (Owner) |
| /stop | Stops the server and disconnects all players (alternatively use /unpublish). | /stop |
4 (Owner) |
Opening LAN worlds to the internet
P2P has been removed from the 26.2 update (for now), and with it the 'Online' multiplayer option for singleplayer worlds. While this does make it harder to connect with friends, it's still possible using the 'LAN' multiplayer option and some additional setup.
- Create a port forwarding rule on your home router to forward a specific port to your computer, and get your friends to join using your public IP address + the port number, e.g.
10.1.1.1:5555. - Or, use mods like e4mc which assigns a unique public domain each time you open your world to LAN.
Make sure to use whitelist or access restrictions if you want to prevent unexpected connections.
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Always Multiplayer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一堆修复
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一个基于构建器的 Minecraft 配置库!
模组
所有本应存在的事物
评论 0
登录后参与评分
还没有评论,来抢沙发吧