PermConflictWatchdog
当 LuckPerms 旁边安装了第二个权限插件时,在权限开始异常之前提醒你。
同时运行两个权限插件不会报错。两者都会加载并附加权限,而哪一方在任何给定检查中胜出主要取决于加载顺序。症状会在更晚的时候才出现,且从未指向真正的原因:某个组的无前缀消失、仅限管理员的命令变为公开、继承关系更改无效。
PermConflictWatchdog 将此转化为启动时的一条响亮控制台警告,以及可选的发送给工作人员的在线游戏内消息。
它解决了 LuckPerms issue #3689,其中 LuckPerms 团队将该想法标记为 good first issue 和 help wanted。
本插件仅进行检查和报告。 它从不修改、禁用或注销任何内容。
你获得的功能
一条无法忽视的控制台警告
[WARN]: [PermConflictWatchdog] ================================================================
[WARN]: [PermConflictWatchdog] PERMISSION PLUGIN CONFLICT DETECTED
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] More than one permissions plugin is installed on this server:
[WARN]: [PermConflictWatchdog] - LuckPerms v5.5.71
[WARN]: [PermConflictWatchdog] - GroupManager v2.9
[WARN]: [PermConflictWatchdog] - PowerRanks (installed as MyRenamedPerms) v1.4
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] Running several permissions plugins at once makes permission checks
[WARN]: [PermConflictWatchdog] unpredictable. Whichever plugin registers last usually wins, so groups,
[WARN]: [PermConflictWatchdog] prefixes and permissions can silently stop behaving the way you set them up.
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] Fix: keep ONE permissions plugin, remove the others from your plugins
[WARN]: [PermConflictWatchdog] folder, and restart the server.
[WARN]: [PermConflictWatchdog] ================================================================
针对工作人员的游戏内提示 - 每位玩家每次重启仅一次,适用于拥有 permconflictwatchdog.alert(默认为 op)的任何人员。完全支持 MiniMessage 自定义,或者可以完全关闭。
一切正常时保持沉默。 只有一个权限插件的服务端会记录 无 任何内容。没有启动横幅,没有广告,也没有“感谢安装”。
重命名的 jar 文件和分支版本也能被捕获。 检测基于插件名称 或 主类进行匹配,因此重新打包的 jar 文件会显示为 PowerRanks (installed as MyRenamedPerms)。
可编辑的检测列表。 已知插件列表位于 config.yml 中,而非嵌入在 jar 文件里。添加一个插件,运行 /pcw reload,完成——无需等待更新。
开箱即用的检测
LuckPerms · PermissionsEx · GroupManager · zPermissions · PowerRanks · UltraPermissions · bPermissions · PermissionsBukkit · Privileges
故意排除了 Vault - 它是一个权限 桥接 插件,旨在与 LuckPerms 并存,而不是竞争的权限插件。同样排除的是那些将数据存储在 LuckPerms 中的等级和 GUI 辅助插件。
命令
/pcw(或 /permconflictwatchdog),权限 permconflictwatchdog.admin,默认 op。
| 命令 |
功能 |
/pcw status |
发现了什么,是否存在冲突,以及工作人员警报的预览 |
/pcw rescan |
立即重新运行检查,例如在运行时加载插件后 |
/pcw reload |
重新读取 config.yml 并重新扫描,无需重启 |
配置
| 选项 |
默认值 |
含义 |
alert-ops-on-join |
true |
工作人员的游戏内警报,每位玩家每次重启仅一次 |
require-luckperms |
true |
仅在找到的插件中包含 LuckPerms 时才发出警告 |
luckperms-plugin-name |
LuckPerms |
对于分支版本,哪个插件被视为 LuckPerms |
debug |
false |
记录扫描详情并确认无问题 |
scan-delay-ticks |
20 |
启动后等待一段时间,以便像 PlugMan 这样的插件加载器先完成加载 |
ignored-plugins |
[] |
永不报告这些插件 |
messages.* |
见文件 |
警报文本,MiniMessage 格式,包含 <plugins> 和 <count> 占位符 |
每个选项都在 config.yml 文件中进行了注释说明。
要求
- Paper 26.2 或 Paper 分支(Purpur, Pufferfish)
- Java 25
- 无依赖项。安装它不需要 LuckPerms。
安装
将 jar 文件放入 plugins/ 目录,然后重启服务器。就这样——如果你的设置是干净的,你将再也听不到它的声音。
由 Lucio73 制作 · MIT 许可证 · 欢迎提交错误报告和希望添加到检测列表中的插件。
PermConflictWatchdog
Tells you when a second permissions plugin is installed next to LuckPerms - before your permissions start misbehaving.
Running two permissions plugins at once does not throw an error. Both load, both attach permissions, and whichever one wins any given check is largely down to load order. The symptoms turn up much later and never point at the real cause: a group's prefix goes missing, an op-only command becomes public, an inheritance change has no effect.
PermConflictWatchdog turns that into one loud console warning at startup, plus an optional in-game message to your staff.
It answers LuckPerms issue #3689, where the LuckPerms team tagged the idea good first issue and help wanted.
This plugin only looks and reports. It never changes, disables or unregisters anything.
What you get
A console warning you cannot miss
[WARN]: [PermConflictWatchdog] ================================================================
[WARN]: [PermConflictWatchdog] PERMISSION PLUGIN CONFLICT DETECTED
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] More than one permissions plugin is installed on this server:
[WARN]: [PermConflictWatchdog] - LuckPerms v5.5.71
[WARN]: [PermConflictWatchdog] - GroupManager v2.9
[WARN]: [PermConflictWatchdog] - PowerRanks (installed as MyRenamedPerms) v1.4
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] Running several permissions plugins at once makes permission checks
[WARN]: [PermConflictWatchdog] unpredictable. Whichever plugin registers last usually wins, so groups,
[WARN]: [PermConflictWatchdog] prefixes and permissions can silently stop behaving the way you set them up.
[WARN]: [PermConflictWatchdog]
[WARN]: [PermConflictWatchdog] Fix: keep ONE permissions plugin, remove the others from your plugins
[WARN]: [PermConflictWatchdog] folder, and restart the server.
[WARN]: [PermConflictWatchdog] ================================================================
An in-game heads-up for staff - once per player per restart, for anyone with permconflictwatchdog.alert (default op). Fully customisable in MiniMessage, or switch it off entirely.
Silence when everything is fine. A server with one permissions plugin logs nothing. No startup banner, no ads, no "thanks for installing".
Renamed jars and forks are still caught. Detection matches on the plugin name or the main class, so a repackaged jar shows up as PowerRanks (installed as MyRenamedPerms).
An editable detection list. The known-plugins list lives in config.yml, not in the jar. Add a plugin, run /pcw reload, done - no waiting on an update.
Detects out of the box
LuckPerms · PermissionsEx · GroupManager · zPermissions · PowerRanks · UltraPermissions · bPermissions · PermissionsBukkit · Privileges
Vault is deliberately excluded - it is a permissions bridge meant to sit alongside LuckPerms, not a competing permissions plugin. Same for rank and GUI helpers that store their data in LuckPerms.
Commands
/pcw (or /permconflictwatchdog), permission permconflictwatchdog.admin, default op.
| Command |
Does |
/pcw status |
What was found, whether a conflict is active, plus a preview of the staff alert |
/pcw rescan |
Re-run the check now, e.g. after loading a plugin at runtime |
/pcw reload |
Re-read config.yml and rescan, no restart needed |
Configuration
| Option |
Default |
Meaning |
alert-ops-on-join |
true |
In-game alert for staff, once per player per restart |
require-luckperms |
true |
Only warn when LuckPerms is one of the plugins found |
luckperms-plugin-name |
LuckPerms |
Which plugin counts as LuckPerms, for forks |
debug |
false |
Log the scan detail and confirm the all-clear |
scan-delay-ticks |
20 |
Wait after startup, so plugin loaders like PlugMan finish first |
ignored-plugins |
[] |
Never report these |
messages.* |
see file |
The alert text, MiniMessage, with <plugins> and <count> |
Every option is commented in config.yml itself.
Requirements
- Paper 26.2 or a Paper fork (Purpur, Pufferfish)
- Java 25
- No dependencies. LuckPerms is not required to install it.
Install
Drop the jar in plugins/, restart. That's it - if your setup is clean you will never hear from it again.
Made by Lucio73 · MIT licensed · Bug reports and plugins to add to the detection list are welcome.
评论 0
登录后参与评分
还没有评论,来抢沙发吧