ChatBlock
图标是对《我没有嘴,但我必须尖叫》的致敬。
一个简单的代理插件,在消息发送到服务器之前,为指定玩家屏蔽命令和聊天。
支持 Velocity、BungeeCord 和 Waterfall。专为服务器网络设计,其中只有允许的玩家(工作人员、建造者)才能在某些后端服务器上发送命令和聊天,而其他所有玩家则被锁定。
功能
- 按服务器独立屏蔽命令和/或聊天
- 同样屏蔽插件和模组命令(代理接收到的所有内容均受覆盖)
- 两种全局屏蔽模式:
- 白名单 — 仅列出的玩家可以使用命令/聊天
- 黑名单 — 除列出玩家外的所有人都可以使用命令/聊天
- 每个服务器的始终允许的命令白名单(例如
/menu、/warp)
- 通过命令热重载 —— 无需重启代理
- 受信任玩家的权限绕过
- 默认禁用 —— 在您配置之前,插件不会执行任何操作
- 在所有平台上使用相同的配置文件和命令
要求
| 代理 |
版本 |
Java |
| Velocity |
3.4+ (已在 3.4/4.0 上测试) |
17+ (3.4), 21+ (3.5+), 25+ (4.0+) |
| BungeeCord |
1.21+ |
17+ |
| Waterfall |
1.21 |
17+ |
安装
- 从发布页面下载适用于您代理的 jar 文件:
- Velocity:
ChatBlock-velocity-<version>.jar
- BungeeCord / Waterfall:
ChatBlock-bungee-<version>.jar
- 将 jar 文件放入代理的
plugins/ 文件夹中。
- 重启代理(如果可用,也可以使用
/velocity plugins reload)。
- 编辑配置文件以启用屏蔽(见下文):
- Velocity:
plugins/chatblock/config.yml
- BungeeCord / Waterfall:
plugins/ChatBlock/config.yml
- 赋予自己
chatblock.admin 权限,并在游戏中使用 /chatblock 进行所有配置。
配置
默认情况下,插件处于禁用状态且不执行任何操作。要启用它:
# whitelist | blacklist | disabled
mode: whitelist
# 持有此权限的玩家永远不会被屏蔽。
bypass-permission: "chatblock.bypass"
messages:
command-denied: "<red>Only allowed players can use commands."
chat-denied: "<red>Only allowed players can chat."
# ... 插件发送的所有其他消息(用法、错误、状态、帮助)
reloaded: "Configuration reloaded."
servers:
lobby:
block-commands: true
block-chat: true
whitelist:
- "Steve"
blacklist: []
# 在此服务器上对所有玩家始终允许的命令。
allowed-commands:
- "menu"
- "warp"
mode: whitelist — 只有列入服务器 whitelist 的玩家才能使用命令/聊天。
mode: blacklist — 所有人都可以,除非列入服务器 blacklist 中的玩家。
mode: disabled — 任何地方都不屏蔽。
- 只有列在
servers: 下的服务器会受到影响。allowed-commands 条目匹配命令名称(带或不带 /);基础命令也允许其子命令。
所有面向用户的消息(拒绝消息、命令用法/错误、状态输出、帮助)均可在 messages: 下进行配置。像 {server}、{user}、{command}、{list}、{mode}、{target} 和 {value} 这样的占位符会自动替换。command-denied 和 chat-denied.
命令
所有命令都需要 chatblock.admin 权限。
| 命令 |
描述 |
/chatblock whitelist add <server> <user> |
将玩家添加到服务器的白名单中 |
/chatblock whitelist remove <server> <user> |
将玩家从服务器的白名单中移除 |
/chatblock whitelist list <server> |
列出服务器的白名单玩家 |
/chatblock blacklist add <server> <user> |
将玩家添加到服务器的黑名单中 |
/chatblock blacklist remove <server> <user> |
将玩家从服务器的黑名单中移除 |
/chatblock blacklist list <server> |
列出服务器的黑名单玩家 |
/chatblock allowed add <server> <command> |
允许服务器上的每个玩家使用某个命令 |
/chatblock allowed remove <server> <command> |
禁止服务器上的某个命令 |
/chatblock allowed list <server> |
列出服务器的允许命令 |
/chatblock setmode <whitelist|blacklist|disabled> |
更改屏蔽模式 |
/chatblock block <server> <chat|commands> <true|false> |
按服务器启用/禁用命令或聊天屏蔽 |
/chatblock status [server] |
显示当前配置 |
/chatblock reload |
从磁盘重新加载配置 |
可以通过玩家名称或 UUID 添加用户。
权限
| 权限 |
描述 |
chatblock.admin |
访问所有 /chatblock 命令 |
chatblock.bypass |
永远不会被插件屏蔽(可在 config.yml 中配置) |
ChatBlock
The icon is a reference to "I have no mouth and I must scream" btw.
A simple proxy plugin that blocks commands and chat for selected players before they get sent to the server.
Runs on Velocity, BungeeCord and Waterfall. Designed for server networks where only allowed players (staff, builders) should be able to use commands and chat on certain backend servers, while everyone else is locked down.
Features
- Block commands and/or chat independently, per server
- Blocks plugin and mod commands too (everything sent to the proxy is covered)
- Two blocking modes (global):
- whitelist — only listed players can use commands/chat
- blacklist — everyone except listed players can use commands/chat
- Per-server allow lists of commands that are always allowed (e.g.
/menu, /warp)
- Hot-reload via commands — no proxy restarts needed
- Bypass permission for trusted players
- Disabled by default — the plugin does nothing until you configure it
- Same configuration file and commands on every platform
Requirements
| Proxy |
Version |
Java |
| Velocity |
3.4+ (tested on 3.4/4.0) |
17+ (3.4), 21+ (3.5+), 25+ (4.0+) |
| BungeeCord |
1.21+ |
17+ |
| Waterfall |
1.21 |
17+ |
Installation
- Download the jar for your proxy from the releases:
- Velocity:
ChatBlock-velocity-<version>.jar
- BungeeCord / Waterfall:
ChatBlock-bungee-<version>.jar
- Drop the jar into your proxy's
plugins/ folder.
- Restart the proxy (or use
/velocity plugins reload if available).
- Edit the config to enable blocking (see below):
- Velocity:
plugins/chatblock/config.yml
- BungeeCord / Waterfall:
plugins/ChatBlock/config.yml
- Give yourself the
chatblock.admin permission and configure everything in-game with /chatblock.
Configuration
By default the plugin is disabled and does nothing. To enable it:
# whitelist | blacklist | disabled
mode: whitelist
# Players holding this permission are never blocked.
bypass-permission: "chatblock.bypass"
messages:
command-denied: "<red>Only allowed players can use commands."
chat-denied: "<red>Only allowed players can chat."
# ... every other message the plugin sends (usage, errors, status, help)
reloaded: "Configuration reloaded."
servers:
lobby:
block-commands: true
block-chat: true
whitelist:
- "Steve"
blacklist: []
# Commands always allowed for every player on this server.
allowed-commands:
- "menu"
- "warp"
mode: whitelist — only players in the server's whitelist can use commands/chat.
mode: blacklist — everyone can, except players in the server's blacklist.
mode: disabled — no blocking anywhere.
- Only servers listed under
servers: are affected. allowed-commands entries match the command name (with or without /); a base command also allows its subcommands.
All user-facing messages (denied messages, command usage/errors, status output, help) are configurable under messages:. Placeholders like {server}, {user}, {command}, {list}, {mode}, {target} and {value} are replaced automatically. The command-denied and chat-denied.
Commands
All commands require the chatblock.admin permission.
| Command |
Description |
/chatblock whitelist add <server> <user> |
Add a player to the whitelist of a server |
/chatblock whitelist remove <server> <user> |
Remove a player from the whitelist of a server |
/chatblock whitelist list <server> |
List whitelisted players of a server |
/chatblock blacklist add <server> <user> |
Add a player to the blacklist of a server |
/chatblock blacklist remove <server> <user> |
Remove a player from the blacklist of a server |
/chatblock blacklist list <server> |
List blacklisted players of a server |
/chatblock allowed add <server> <command> |
Allow a command for every player on a server |
/chatblock allowed remove <server> <command> |
Disallow a command on a server |
/chatblock allowed list <server> |
List allowed commands of a server |
/chatblock setmode <whitelist|blacklist|disabled> |
Change the blocking mode |
/chatblock block <server> <chat|commands> <true|false> |
Enable/disable command or chat blocking per server |
/chatblock status [server] |
Show the current configuration |
/chatblock reload |
Reload the configuration from disk |
Users can be added by player name or UUID.
Permissions
| Permission |
Description |
chatblock.admin |
Access to all /chatblock commands |
chatblock.bypass |
Never blocked by the plugin (configurable in config.yml) |
评论 0
登录后参与评分
还没有评论,来抢沙发吧