Minecraft群组服简介
BungeeCord 是一个群组服务端,非普通 Minecraft 服务端,此服务端只作为一个转发作用,用于将多个子服连接在一起,并可以让玩家在不同的子服之间传送,启动方法与普通 Minecraft 服务端相同,但是只支持 BungeeCord 插件。
Minecraft群组服开服
准备一台linux服务器,已安装docker,运行以下命令,启动代理端,这里使用比较流行的bungeecord代理程序
docker run -d --name bungeecord \
-e BUNGEE_JOB_ID=1609 \
-p 25565:25577 \
--restart always \
-v /data/mc/bungeecord/data:/server \
itzg/bungeecord
查看容器运行状态
[root@mcserver ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
019b1e2cd268 itzg/bungeecord "/usr/bin/run-bungee…" 45 seconds ago Up 45 seconds (healthy) 0.0.0.0:25565->25577/tcp, :::25565->25577/tcp bungeecord
修改bungeecord配置
修改online_mode: false
、servers部分、listeners.priorities部分:
[root@mcserver ~]# cat /data/mc/bungeecord/data/config.yml
server_connect_timeout: 5000
remote_ping_cache: -1
forge_support: false
player_limit: -1
permissions:
default:
- bungeecord.command.server
- bungeecord.command.list
admin:
- bungeecord.command.alert
- bungeecord.command.end
- bungeecord.command.ip
- bungeecord.command.reload
timeout: 30000
log_commands: false
network_compression_threshold: 256
online_mode: false
disabled_commands:
- disabledcommandhere
servers:
vanilla:
motd: 'vanilla server'
address: 10.0.20.2:25566
restricted: false
paper:
motd: 'paper server'
address: 10.0.20.2:25567
restricted: false
island:
motd: 'island server'
address: 10.0.20.2:25568
restricted: false
fabric:
motd: 'fabric server'
address: 10.0.20.2:25569
restricted: false
listeners:
- query_port: 25577
motd: '&1Another Bungee server'
tab_list: GLOBAL_PING
query_enabled: false
proxy_protocol: false
forced_hosts:
pvp.md-5.net: pvp
ping_passthrough: false
priorities:
- vanilla
- paper
- island
- fabric
bind_local_address: true
host: 0.0.0.0:25577
max_players: 1
tab_size: 60
force_default_server: false
ip_forward: false
remote_ping_timeout: 5000
prevent_proxy_connections: false
groups:
md_5:
- admin
connection_throttle: 4000
stats: 3fa9b870-461a-4b20-9f3c-6d5d1b91bdb3
connection_throttle_limit: 3
log_pings: true
其中10.0.20.2为服务器内网IP地址,使用ip a
命令获取。
重启容器
docker restart bungeecord
客户端连接bungeecord
使用客户端连接,bungeecord使用默认的25565端口,输入/server xx
切换服