Minecraft 1.20 BungeeCord 配置文件启用 Spigot 插件消息监听
要在 BungeeCord 的配置文件中启用 Spigot 插件消息监听,你需要进行以下步骤:
- 打开 BungeeCord 服务器的配置文件,通常位于 BungeeCord 文件夹下的 config.yml 文件。
- 找到并编辑以下行:
listeners:
- max_players: 20
motd: '&1Just another BungeeCord - Forced Host'
forced_hosts:
pvp.md-5.net: pvp
tab_list: GLOBAL_PING
query_port: 25577
query_enabled: false
bind_local_address: true
ping_passthrough: false
priorities:
- lobby
- default
- premium
tab_size: 60
force_default_server: false
force_default_server_name: ''
log_pings: true
remote_ping_cache: 0
remote_ping_timeout: 5000
servers:
lobby:
motd: '&1Just another BungeeCord - Forced Host'
address: 127.0.0.1:25565
restricted: false
hidden: false
- 在该配置文件中,找到和编辑以下行:
listeners:
- max_players: 20
motd: '&1Just another BungeeCord - Forced Host'
forced_hosts:
pvp.md-5.net: pvp
tab_list: GLOBAL_PING
query_port: 25577
query_enabled: false
bind_local_address: true
ping_passthrough: false
priorities:
- lobby
- default
- premium
tab_size: 60
force_default_server: false
force_default_server_name: ''
log_pings: true
remote_ping_cache: 0
remote_ping_timeout: 5000
servers:
lobby:
motd: '&1Just another BungeeCord - Forced Host'
address: 127.0.0.1:25565
restricted: false
hidden: false
plugin_message_channels:
- 'BungeeCord'
- 'spigot:channelName'
- 在'plugin_message_channels'下添加你想要启用的 Spigot 插件消息监听的通道名称。例如,如果你的插件消息通道名称为'spigot:channelName',你可以将其添加到列表中。
- 保存并关闭配置文件。
- 重新启动 BungeeCord 服务器。
这样,你就可以在 BungeeCord 服务器上启用 Spigot 插件消息监听了。请确保插件也已经正确配置了消息监听。
原文地址: https://www.cveoy.top/t/topic/fPKW 著作权归作者所有。请勿转载和采集!