sChatManager
一款 Bukkit/Spigot/Paper 插件,用于完全关闭聊天并屏蔽黑名单中的命令。
无需权限、无绕过机制——该屏蔽对所有玩家一律生效。
一个 jar 文件即可兼容从 1.8 到 26.2 的所有服务器版本。
功能
- 通过单个配置选项全局禁用玩家聊天。
- 按黑名单屏蔽命令,或一次性屏蔽所有命令。
- 回复消息完全可自定义,支持多行消息。
- 支持全范围的
& 颜色代码,以及在 1.16+ 版本中支持 &#RRGGBB 十六进制颜色。
- 无任何权限节点,也无任何绕过逻辑。
安装
- 将
sChatManager-1.0.0.jar 放入服务器的 plugins 文件夹。
- 启动服务器一次以生成
plugins/sChatManager/config.yml。
- 编辑配置文件并运行
/schatmanager reload。
配置
chat:
enabled: false
message: "&cЧат на сервере отключён."
commands:
block-all: false
blacklist:
- "msg"
- "tell"
- "w"
- "r"
- "me"
- "say"
message: "&cЭта команда заблокирована."
reload-message: "&aКонфигурация sChatManager перезагружена."
消息
任何消息都可以是单个字符串或字符串列表;如果是列表,则每个条目会作为独立的一行发送:
chat:
message:
- "&cЧат отключён."
- "&7Обратитесь к администрации."
将消息设置为 "" 则不会发送任何内容——操作仍会被阻止,只是静默处理。
黑名单匹配
条目会与命令的第一个单词进行不区分大小写的匹配。前导的 / 和命名空间前缀会在两端被剥离,因此 tell、/tell 和 minecraft:tell 被视为同一个条目。
包含空格的条目会作为前缀进行匹配,从而允许你仅屏蔽某个子命令:
blacklist:
- "gamemode creative"
这会阻止 /gamemode creative Steve,但允许 /gamemode survival 正常工作。
命令
| 命令 |
描述 |
/schatmanager reload |
重新加载 config.yml。别名:/scm、/schat。 |
重载命令对控制台和管理员可用。这是基于 isOp() 的检查,而非权限节点——该插件根本不注册任何权限。
/schatmanager 是唯一不受 block-all 影响的命令,否则将无法在游戏中解除屏蔽。
sChatManager
A Bukkit/Spigot/Paper plugin that turns off chat completely and blocks blacklisted commands.
No permissions, no bypasses — the block applies to every player equally.
One jar covers every server version from 1.8 to 26.2.
Features
- Disable player chat server-wide with a single config flag.
- Block commands by blacklist, or block all commands at once.
- Fully customizable response messages, including multi-line ones.
& color codes everywhere, plus &#RRGGBB hex colors on 1.16+.
- No permission nodes and no bypass logic of any kind.
Installation
- Drop
sChatManager-1.0.0.jar into the server's plugins folder.
- Start the server once to generate
plugins/sChatManager/config.yml.
- Edit the config and run
/schatmanager reload.
Configuration
chat:
enabled: false
message: "&cЧат на сервере отключён."
commands:
block-all: false
blacklist:
- "msg"
- "tell"
- "w"
- "r"
- "me"
- "say"
message: "&cЭта команда заблокирована."
reload-message: "&aКонфигурация sChatManager перезагружена."
Messages
Any message may be a single string or a list of strings, in which case each entry is sent as
its own line:
chat:
message:
- "&cЧат отключён."
- "&7Обратитесь к администрации."
Setting a message to "" sends nothing at all — the action is still blocked, just silently.
Blacklist matching
Entries are matched against the first word of the command, case-insensitively. A leading /
and a namespace prefix are stripped from both sides, so tell, /tell and minecraft:tell
are all the same entry.
An entry containing spaces is matched as a prefix, which lets you block a single subcommand:
blacklist:
- "gamemode creative"
This blocks /gamemode creative Steve but leaves /gamemode survival working.
Commands
| Command |
Description |
/schatmanager reload |
Reloads config.yml. Aliases: /scm, /schat. |
The reload command is available to the console and to operators. This is an isOp() check,
not a permission node — the plugin registers no permissions at all.
/schatmanager is the only command exempt from block-all, otherwise there would be no way
to turn blocking off from in-game.
评论 0
登录后参与评分
还没有评论,来抢沙发吧