跳转至

BungeeCord 跨服🔗


CMI 支持 BungeeCord 和 Velocity。本页将解释支持什么和不支持什么。随着时间的推移,我们希望改进对 BungeeCord 和 Velocity 的支持(不保证)。

关于 BungeeCord(你的 Minecraft 服务器网络的代理)的更多信息可以在这里找到:https://www.spigotmc.org/wiki/bungeecord/,关于 Velocity(也是你网络的代理)的更多信息可以在这里找到:https://docs.papermc.io/velocity

由于两者的机制相同,下面列出的现有命令、权限和占位符适用于两者。

命令与权限 (Commands and Permissions)🔗

/cmi bbroadcast (!) [message] (-s:[serverName,serverName])
-> cmi.command.bbroadcast - 向所有服务器上的所有玩家发送特殊消息

/cmi msg [playerName] [message]
-> cmi.command.msg.togglebypass - 即使玩家已关闭私聊也允许向其发送私密消息
-> cmi.command.msg - 向玩家发送消息
-> cmi.command.msg.[maingroupname].send - 允许向特定的玩家组发送私密消息
-> cmi.command.msg.clean - 允许使用开头的 ! 向玩家发送干净的消息
-> cmi.command.msg.noreply - 允许使用开头的 !- 向玩家发送干净的消息,且没有回复选项
-> cmi.command.msg.vanish - 允许向隐身玩家发送私密消息

/cmi reply [message]
-> cmi.command.reply - 回复最后一条消息的发送者

/cmi sendall [serverName]
-> cmi.command.sendall.bypass - 防止玩家被发送到目标服务器
-> cmi.command.sendall - 将所有在线玩家发送到目标服务器

/cmi server [serverName] (playerName) (-f)
-> cmi.command.server.others - 连接到 BungeeCord 服务器
-> cmi.command.server - 连接到 BungeeCord 服务器

/cmi serverlist
-> cmi.command.serverlist - 显示服务器列表
-> cmi.command.serverlist.others - 显示服务器列表

/cmi staffmsg [message/toggle/on/off]
-> cmi.command.staffmsg - 向员工频道发送消息

-> cmi.bungee.publicmessages.[servername] - 允许向目标服务器发送公共消息

占位符 (Placeholders)🔗

%cmi_user_bungeeserver%
%cmi_bungee_total_[serverName]%
%cmi_bungee_current_[serverName]%
%cmi_bungee_motd_[serverName]%
%cmi_bungee_onlinestatus_[serverName]%

CMI 的 Settings/Chat.yml 中的配置 (Configuration in CMI's Settings/Chat.yml)🔗

BungeeCord:
  # You can disable bungeecord support entirely if you are exrperiencing issues with it
  # When setting this to false some features like public messages over bungee cord, private messages over bungeecord, portals over bungecoord and other features will stop working
  # Keep in mind that regular behavior of those features will remain intacted
  Enabled: true
  # When set to true player names from entire bungee network will be included into tab complete
  NamesInTabComplete: true

以及:

  Bungee:
    # Attention! This will require you to have CMI Bungee plugin which can be found at zrips.net
    # Or direct download https://www.zrips.net/cmi/
    # Do you want to enable private messaging over bungeecord
    Messages: true
    # Do you want to enable public messaging over bungeecord
    # Player needs to have cmi.bungee.publicmessages.[servername] permission node to be able to send messages to target server
    PublicMessages: true
    # Do you want to enable staff messaging over bungeecord
    StaffMessages: true

安装说明 (Installation Instructions)🔗

  • 如果你还没有 CMI 许可证,请购买一个用于你的网络。

  • 在除代理之外的每台服务器上安装 CMI(和 CMILib)。

  • 配置 CMI,启用 CMI Chat,并根据本文章中的说明启用 BungeeCord。(Velocity 也一样)

  • 获取 CMI Bungee 文件或 CMI Velocity 文件,只放在代理上。

  • 完成,启动你的网络,并留意控制台(或 latest.log)以捕获任何潜在的问题。

CMI 的 BungeeCord / Velocity 文件会帮助同步 x y z 吗? (Will the CMI's BungeeCord / Velocity File Help Synchronize x y z?)🔗

目前,答案可能是不会。它不会同步背包、金币,或传送点(warps)和家(homes)之类的东西。Zrips 是否有兴趣为此添加更多支持?是的,据我所知是有兴趣的。但对此我没有任何时间表。

目前,它主要用于同步公共和私密聊天以及员工消息,更好地支持 /cmi server、/cmi serverlist、通过传送门(portals)跳转,以及服务器之间切换时自定义消息的变化。

CMI Chat 与 BungeeCord / Velocity Chat🔗

你必须启用 CMI 的聊天管理(Chat Manager)功能才能使用 CMI 的 BungeeCord 聊天功能。你可以通过编辑 CMI Settings/Chat.yml 文件来实现:

Chat:
  # Will try to modify chat to display it in a defined format
  ModifyChatFormat: true

然后,走完所有与聊天相关的其他选项。

不要忘记设置适当的权限,例如:cmi.bungee.publicmessages.[servername]

常见问题 (FAQ)🔗

  • 如果我运行 3 个服务器,且它们都在同一个网络上,我需要三份许可证吗?
  • 不需要,一份许可证覆盖整个网络。

  • 聊天是全局的吗?

  • 是的,聊天将显示在你的网络上的所有服务器中。

  • 我能同步我所有服务器上的金币吗?

  • 目前这是不可能的。不过,可以使用一个名为 MySQL Player Data Bridge 的第三方插件(我们不为此设置提供支持)。

  • 所有传送点能跨每个服务器同步吗?

  • 不能,很遗憾使用 CMI 是不可能的。

  • 家能跨每个服务器同步吗?

  • 不能。和传送点一样,很遗憾使用 CMI 是不可能的。

  • 我可以使用传送门将玩家传送到网络上的另一台服务器吗?

  • 可以,这可以通过 CMI 的传送门(Portals)功能实现。

  • 我可以使用 /server 和 /serverlist 代替 /cmi server 和 /cmi serverlist 吗?

  • 导航到 CMI 的 Alias.yml 文件,并在那里启用这些命令。

  • 如果一个命令无法在服务器上运行,我还能发送它吗?

  • 不能,目前使用 CMI 是不可能的。

  • 如果一个命令不能将玩家移动到另一台服务器,我还能这样做吗?

  • 可以,你可以使用 /cmi aliaseditor,它使用 /cmi server 和/或占位符。

  • 我可以在服务器之间共享背包吗?

  • 目前这是不可能的。不过,可以使用一个名为 MySQL Player Data Bridge 的第三方插件(我们不为此设置提供支持)。

  • 我可以为所有 CMI 实例使用一个数据库吗?

  • 不能,默认是 SQLite。你可以选择使用 MySQL,但要确保每个服务器的 tablePrefix 选项是唯一的以避免问题。

  • 为什么 CMI BungeeCord / Velocity 文件没有生成任何文件夹?

  • 这完全正常。CMI 的 BungeeCord 文件目前不会生成任何额外的文件或文件夹。你可以通过在任何后端服务器上检查 /cmi version 来验证 CMI 是否已与 BungeeCord / Velocity 挂钩。它应该显示 BungeeCord 已挂钩。

  • 有 Velocity 支持吗?

  • 有的,已添加支持,需要最新的 CMI、CMILib jar 文件,以及免费下载的 CMIV(velocity)jar 文件。

  • 我可以显示自定义的服务器切换消息,这样就不会显示加入或离开服务器吗?

  • 可以,你可以在 config.yml 中找到 ServerSwitch: 并将其设置为 true。当启用并且你的 BungeeCord 服务器上装有 CMIB(或 Velocity 上装有 CMIV)时,我们会尝试检测玩家去了哪里,并尽可能显示切换服务器消息而不是退出消息。 (内容由AI生成,仅供参考)