GroupChat
由 FireNH 制作
一款为 Minecraft 添加服务器端群聊功能的模组,支持私聊。
本模组新增了一个命令:/group。/group 命令允许玩家通过游戏内聊天管理私人群组聊天。可以使用 /group create <组名> 创建群组,并在末尾选择添加密码。其他玩家可以使用 /group join <组名> [密码] 加入该群组(如果群组未设置密码,则可以省略密码)。玩家可以发送消息给群组中所有在线成员,使用 /group message <组名> <消息>。此外,玩家还可以使用简写命令 /g <组名> <消息> 来快速发送消息。玩家可以使用 /group players <组名> 查看群组成员和密码。玩家还可以通过 /group invite <组名> <玩家> 快速邀请他人加入群组,该命令会发送一条带有自动补全功能的聊天消息,用于加入群组;如果是密码保护的群组,还会附带密码信息。最后,玩家可以使用 /group leave <组名> 退出群组。如果某个群组中没有任何玩家,则该群组会被删除,之后可以用相同的名称重新创建一个新的群组。
群组及其玩家列表和密码存储在 ./config/groups.json 中。如果你需要手动编辑某个群组,可以直接在此处进行修改。
本模组为服务端模组,这意味着它可以仅安装于服务器端,而无需客户端也进行安装。不过,客户端同样可以在单人世界中使用它,尽管这样做实际上并无必要。
由 FireNH 开发
源代码
GroupChat
by FireNH
A mod to add server-side group chats to Minecraft to allow for private messaging.
This mod adds a new command: /group. The /group command allows players to manage private group chats through the in-game chat. A group can be created using /group create <groupname> with an option to also add a password on the end. Other players can join this group using /group join <groupname> [password] (or the password can be omitted if the group doesn't have a password). Players can use /group message <groupname> <message> to message all of the online players in that group. In addition, players can also use an alias command /g <groupname> <message> for short. Players can see the members in that group and the password with /group players <groupname>. Players can also quickly invite others to a group using /group invite <groupname> <players> which sends a chat message with an autocomplete to join the group, along with the password if it is a password locked group. Finally, players can leave a group with /group leave <groupname>. If there is ever a point where there are no players in a group, that group is deleted, and another new group can be created with that same name.
Groups, along with their player lists and passwords, are stored in ./config/groups.json. If you ever need to manually edit a group, you can do so there.
This mod is server-side, meaning it can be installed on a server without requiring clients to also install it. However, clients can use it in Singleplayer worlds as well, even if there's really no point.
Developed by FireNH on Github
(Sources)
评论 0
登录后参与评分
还没有评论,来抢沙发吧