本项目为开源项目。
当服务器拥有超过 20 个槽位时,聊天频道会过载,导致难以跟上对话节奏。
服务器上许多聊天信息并非面向全体玩家,而是发送给一小部分玩家。
本插件允许玩家创建自己的聊天小队(Party)并邀请其他玩家加入。
只有小队成员才能看到聊天消息。
小队的创建者可以指定额外的队长,他们同样可以邀请和踢出玩家。
当所有队长都离开小队时,小队将自动解散。
如何创建小队
拥有 chatparty.leader 权限的玩家可以使用以下命令创建小队:/party create <name>。
小队的名称将在邀请其他玩家时显示。他们可以使用公会或派系的名称。
之后,他们可以通过 /party invite <player> 邀请其他玩家,并通过 /party leader <player> 将其成员提升为队长。
被邀请的玩家可以使用 /party join 接受邀请,或者忽略它。玩家一次只能加入一个小队!
小队聊天
玩家需要 chatparty.user 权限(包含在 chatparty.leader 中)才能使用小队聊天命令:/p <message>。
该插件支持彩色名称和昵称(例如由 Essentials 设置)。
用户还可以使用 /party members 显示所有小队成员的列表。
用户可以通过 /party toggle 切换小队聊天状态,这样就不必每次都输入 /p。
管理工具
拥有 chatparty.admin 权限的管理员可以使用 /party spy 启用间谍模式。他们将看到所有小队消息和操作。
这类似于 Essentials 的 /socialspy 命令。
建议
我建议将所有玩家的 chatparty.leader 权限授予他们,以便他们在加入服务器后能立即组建团队。
宣传该命令:
- 在出生点
- 在你的规则书中 ()
- 使用自动消息插件 ()
如果禁止在公共聊天中使用脏话,我建议在小组聊天中允许。(即:如果在公共聊天中禁用粗口,则在小组聊天中允许。)
命令列表 (0.3.0 及更高版本)
| 命令 | 描述 | 权限 |
| /party 或 /party help | 插件帮助 | chatparty.user |
| /chat | 切换全局聊天 | chatparty.user |
| /p <message> | 向小队发送消息 | chatparty.user |
| /party join | 接受小队邀请 | chatparty.user |
| /party leave | 离开小队 | chatparty.user |
| /party members | 显示队长和成员列表 | chatparty.user |
| /party toggle | 切换小队聊天(这样你就不用一直输入 /p) | chatparty.user |
| /party create <name> | 创建新小队 | chatparty.leader |
| /party invite <player> | 邀请玩家 | chatparty.leader |
| /party kick <player> | 将玩家从小队踢出 | chatparty.leader |
| /party leader <player> | 提升玩家为队长 | chatparty.leader |
| /party spy | 监控所有小队聊天 | chatparty.admin |
配置 (0.3.0 及更高版本)
你可以在配置文件中修改 /p 命令的行为:
| 配置项 | 描述 |
| invertP | 将 invertP 设置为 true 会在用户切换小队聊天状态时反转 /p 命令的功能(这意味着他可以向公共聊天发送消息)。 |
| toggleWithP | 将 toggleWithP 设置为 true 允许用户在未提供消息的情况下使用 /p 命令切换小队聊天状态。 |
你还可以修改消息颜色和聊天格式:
| 选项 | 描述 |
| messageColor | 插件消息的颜色 (颜色代码) |
| chatFormat | 小队聊天消息的格式。占位符:{PARTYNAME}, {DISPLAYNAME}, {MESSAGE} |
This Project is open-source.
When you have a server with more than 20 slots, the chat will be overloaded, it will be hard to follow the chat.
Many of the chat messages on a server are not addressed to the public, but to a small group of players.
This plugin allows players to create their own chat parties and invite other players to them.
Only the members of the party can see the chat messages.
The creator of the party can assign additional leaders who can also invite and kick players.
When all leaders left the party, it disbands automatically.
How to create a party
Players with the permission chatparty.leader can create a party with the command: /party create <name>.
The name of the party will be displayed when they invite other players. They can use their guild or faction name.
After that, they can invite other players with /party invite <player> and promote their members to leaders with /party leader <player>
Invited players can accept the invitation with /party join, or just ignore it. Players can only join one party at a time!
Party Chat
Players need the chatparty.user permission (included in chatparty.leader) to use the party chat command: /p <message>.
The plugin supports colored names and nicknames (e.g. set by Essentials).
Users can also display a list of all party members with /party members
Users can toggle the party chat with /party toggle, so they don't have to type /p all the time.
Admin Tools
Admins with the chatparty.admin permission can enable the spy mode with /party spy. They will see all party messages and actions.
It's similar to the /socialspy command of Essentials.
Recommendation
I recommend you to give all players the chatparty.leader permission so they can form groups as soon as they join the server.
Advertise the command:
- at spawn
- in your rule book ()
- with an automessager plugin ()
I would allow cussing in party chats (if you disallow it in public chat).
Command List (0.3.0 and higher)
| Command | Description | Permission |
| /party or /party help | Plugin help | chatparty.user |
| /chat | Toggle the global chat | chatparty.user |
| /p <message> | Send a message to the party | chatparty.user |
| /party join | Accept a party invitation | chatparty.user |
| /party leave | Leave a party | chatparty.user |
| /party members | Display a list of leaders and members | chatparty.user |
| /party toggle | Toggle the party chat (So you don't have to type /p) | chatparty.user |
| /party create <name> | Create a new party | chatparty.leader |
| /party invite <player> | Create a new party | chatparty.leader |
| /party kick <player> | Kick a player from the party | chatparty.leader |
| /party leader <player> | Promote a player | chatparty.leader |
| /party spy | Monitor all party chats | chatparty.admin |
Configuration (0.3.0 and higher)
You can modify the behaviour of the /p command in the configuration:
| Config | Description |
| invertP | Setting invertP to true inverts the /p command when a user toggled the party chat (That means he can send a message to the public). |
| toggleWithP | Setting toggleWithP to true allows a user to toggle the party chat with the command /p, when no message is given. |
You can also modify the message color and the chat format:
| Option | Description |
| messageColor | Color of the plugin messages (Color Codes) |
| chatFormat | Format of the party chat messages. Placeholders: {PARTYNAME}, {DISPLAYNAME}, {MESSAGE} |
评论 0
登录后参与评分
还没有评论,来抢沙发吧