Decapitator
Decapitator 是一款轻量级的 PaperMC/Bukkit 插件,允许玩家通过一条命令获取玩家头颅。它支持持久的单玩家限额、运行时配置重载,并为离线模式服务器提供自动的 SkinsRestorer 集成。如果未安装 SkinsRestorer,Decapitator 将回退到服务器端的 PlayerProfile 处理机制。
一句话简介
使用 /head 获取自己的玩家头颅(或使用 /head <player> 获取其他玩家的头颅)——支持持久化限额、SkinsRestorer 兼容性及简易的管理员工具。
功能特性
- /head — 获取你自己的玩家头颅
- /head <player> — 获取其他玩家的头颅(受权限控制)
- /head count [player] — 查看某位玩家已请求的头颅数量
- /head reload — 在运行时重新加载配置和存储的玩家数据
- 按玩家追踪使用情况,并持久化保存至
plugins/Decapitator/playercounts.yml
- 通过配置启用无限制模式(
max-heads-per-player: -1)[注意:这是 config.yml 中的默认选项]
- 若已安装 SkinsRestorer,则自动进行运行时集成(可选)
- 当缺少 SkinsRestorer 时,安全地回退至服务器端配置文件行为
命令
/head — 获取你自己的头颅。
/head <player> — 获取其他玩家的头颅(权限:decapitator.head.others)。
/head count — 显示你已请求的头颅数量。
/head count <player> — 显示其他玩家的头颅数量(权限:decapitator.count.others)。
/head reload — 从磁盘重新加载配置和玩家计数数据(权限:decapitator.reload)。
/head help — 显示使用帮助。
权限(默认值)
decapitator.head — 使用 /head 命令(默认:true)
decapitator.head.others — 获取其他玩家的头颅(默认:op)
decapitator.count.others — 查看其他玩家的头颅数量(默认:op)
decapitator.reload — 重载配置/数据(默认:op)
请根据你的权限插件(如 LuckPerms)需求调整上述权限。
配置
默认配置文件打包在 src/main/resources/config.yml 中,并在首次运行时复制到 plugins/Decapitator/config.yml。
示例 config.yml:
# Decapitator configuration
enabled: true
# 每位玩家可订购的头颅最大数量(单玩家限额)。
# 设置为 -1 表示无限个头颅。
max-heads-per-player: -1
Decapitator
Decapitator is a lightweight PaperMC/Bukkit plugin that lets players obtain player heads with a single command. It supports persistent per-player limits, runtime config reloads, and automatic SkinsRestorer integration for offline-mode servers. If SkinsRestorer is not present, Decapitator falls back to server-side PlayerProfile handling.
One-liner
Give yourself your player head with /head (or someone else's head with /head <player> — persistent limits, SkinsRestorer support, and simple admin tools.
Features
- /head — get your own player head
- /head <player> — get another player's head (permission-controlled)
- /head count [player] — view how many heads a player has requested
- /head reload — reload config and stored player data at runtime
- Per-player usage tracking persisted to
plugins/Decapitator/playercounts.yml
- Unlimited mode via config (
max-heads-per-player: -1) [NOTE: This is the Default Option in config.yml]
- Automatic runtime integration with SkinsRestorer if installed (optional)
- Safe fallback to server-side profile behavior when SkinsRestorer is absent
Commands
/head — Get your own head.
/head <player> — Get another player's head (permission: decapitator.head.others).
/head count — Show how many heads you've requested.
/head count <player> — Show another player's count (permission: decapitator.count.others).
/head reload — Reload config and playercounts from disk (permission: decapitator.reload).
/head help — Show usage help.
Permissions (defaults)
decapitator.head — Use /head (default: true)
decapitator.head.others — Get other players’ heads (default: op)
decapitator.count.others — View other players’ counts (default: op)
decapitator.reload — Reload config/data (default: op)
Adjust these via your permissions plugin (such as LuckPerms) as needed.
Configuration
Default config is bundled at src/main/resources/config.yml and copied to plugins/Decapitator/config.yml on first run.
Example config.yml:
# Decapitator configuration
enabled: true
# Maximum number of heads a player can order (per-player limit).
# Set to -1 for unlimited heads.
max-heads-per-player: -1
评论 0
登录后参与评分
还没有评论,来抢沙发吧