Gavel
为 LiteBans 提供的惩罚图形界面插件,支持自动升级处罚。
工作人员运行 /ban player。Gavel 会忽略他们输入的处罚理由和时长,打开你配置的违规菜单,并根据该玩家在该类别中的累计违规次数来决定具体的处罚。LiteBans 仍会执行最终处罚,因此广播、历史记录、跨服同步和申诉功能均可正常使用。
Hacked Client #1 -> 15d ban
Hacked Client #2 -> 25d ban
Hacked Client #3 -> permanent ban
依赖
Spigot、Paper 或基于 1.16 及以上版本的任何分支,Java 8 或更高版本,以及 LiteBans。
安装
将 jar 文件放入 plugins/ 目录,重启服务器,编辑 plugins/Gavel/categories.yml,然后运行 /gavel reload。
配置
| 文件 | 内容说明 |
|---|---|
categories.yml |
违规行为、升级层级以及菜单布局 |
config.yml |
拦截的命令、执行方式、存储设置、音效等 |
messages.yml |
所有显示给玩家的文本字符串 |
以上三个文件均包含注释。其中关键部分是分类(category)的配置:
categories:
hacked_client:
slot: 10
permission: 'gavel.category.hacked_client'
expire-after: 90d
icon:
material: NETHERITE_SWORD
name: '&#ff5555&lHACKED CLIENT'
lore:
- '&7Previous offences: &f%offenses%'
- '%tiers%'
tiers:
- { type: BAN, duration: 15d, reason: 'Hacked Client #1' }
- { type: BAN, duration: 25d, reason: 'Hacked Client #2' }
- { type: BAN, duration: perm, reason: 'Hacked Client #3' }
类型可以是 BAN、IPBAN、MUTE、WARN 和 KICK,并且可以在同一分类中混合使用。
持续时间可以使用 s m h d w mo y 或 perm。
命令
| 命令 | 权限节点 |
|---|---|
/gavel <player> |
gavel.use |
/gavel history <player> |
gavel.history |
/gavel clear <player> [category] |
gavel.admin |
/gavel reload |
gavel.admin |
/gavel version |
gavel.admin |
权限
| 权限节点 | 授予权限 |
|---|---|
gavel.use |
在处罚命令时打开覆盖界面,并允许运行 /gavel |
gavel.bypass |
直接运行原始的 LiteBans 命令,不经过覆盖界面 |
gavel.category.<id> |
访问某个特定分类 |
gavel.silent |
通过 Shift+点击进行静默处罚 |
gavel.history |
查看某玩家的历史记录 |
gavel.admin |
允许使用 reload、clear 和 version |
注意事项
- Gavel 维护自己的
gavel_offenses表。当设置为database.mode: AUTO时,它会复用 LiteBans 的 MySQL、MariaDB 或 PostgreSQL 数据库;若不支持则回退到本地 SQLite (H2) 文件,该文件会被独占锁定。 /unban、unmute等命令会将计数器重置,以便下一次处罚不会从已不存在的历史处罚中继续升级。execution.commands是模板格式,因此如果 LiteBans 构建了不同的命令名称,只需更改配置而无需重新编译。- 玩家名称必须完全匹配。系统不会猜测部分名称,而是直接拒绝。
gavel.bypass默认值为 false 是出于有意设计。拥有通配符*权限会自动授予此权限,从而导致覆盖界面不再弹出。
Gavel
Punishment GUI for LiteBans with automatic escalation.
Staff run /ban player. Gavel ignores the reason and duration they typed, opens a menu of the
offences you configured, and picks the punishment from how many times that player already offended
in that category. LiteBans still applies it, so broadcasts, history, cross-server sync and appeals
keep working.
Hacked Client #1 -> 15d ban
Hacked Client #2 -> 25d ban
Hacked Client #3 -> permanent ban
Requirements
Spigot, Paper or any fork on 1.16 or newer, Java 8 or newer, and LiteBans.
Install
Drop the jar in plugins/, restart, edit plugins/Gavel/categories.yml, run /gavel reload.
Configuration
| File | What is in it |
|---|---|
categories.yml |
The offences, their escalation tiers, and the menu layout |
config.yml |
Which commands are intercepted, how they run, storage, sounds |
messages.yml |
Every string shown to a player |
All three are commented. The part that matters is a category:
categories:
hacked_client:
slot: 10
permission: 'gavel.category.hacked_client'
expire-after: 90d
icon:
material: NETHERITE_SWORD
name: '&#ff5555&lHACKED CLIENT'
lore:
- '&7Previous offences: &f%offenses%'
- '%tiers%'
tiers:
- { type: BAN, duration: 15d, reason: 'Hacked Client #1' }
- { type: BAN, duration: 25d, reason: 'Hacked Client #2' }
- { type: BAN, duration: perm, reason: 'Hacked Client #3' }
Types are BAN, IPBAN, MUTE, WARN and KICK, and can be mixed inside one category.
Durations use s m h d w mo y or perm.
Commands
| Command | Permission |
|---|---|
/gavel <player> |
gavel.use |
/gavel history <player> |
gavel.history |
/gavel clear <player> [category] |
gavel.admin |
/gavel reload |
gavel.admin |
/gavel version |
gavel.admin |
Permissions
| Permission | Grants |
|---|---|
gavel.use |
The overlay opens on punishment commands, and /gavel can be run |
gavel.bypass |
The raw LiteBans commands, without the overlay |
gavel.category.<id> |
One category |
gavel.silent |
Silent punishments with shift-click |
gavel.history |
A player's history |
gavel.admin |
reload, clear and version |
Good to know
- Gavel keeps its own
gavel_offensestable. Withdatabase.mode: AUTOit reuses the LiteBans database on MySQL, MariaDB or PostgreSQL, and falls back to a local SQLite file on H2, which locks its file exclusively. /unban,/unmuteand friends roll the counter back, so the next punishment does not escalate from one that no longer exists.execution.commandsare templates, so a LiteBans build with different command names is a config change rather than a recompile.- Player names must match exactly. A partial name is rejected instead of guessed.
gavel.bypassdefaults to false on purpose. A blanket*permission hands it out and the overlay stops opening.
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Gavel
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
完整更新日志:v1.4.0...v1.4.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧