? 关于
Minecraft 的原版蜡机制会永久锁定告示牌——除非破坏并替换,否则没有官方方法恢复。UnwaxSigns 解决了这个问题:用斧头(或你在配置中设置的任意工具)右键点击已上蜡的告示牌即可去除蜡层,使其可再次编辑,同时伴有音效和粒子反馈。
该模组旨在无缝融入你的服务器:开箱即用,无需任何配置,但每一条规则——哪些工具有效、消耗多少、谁能绕过限制、音效和视觉效果如何——都可以由你自定义调整。
✨ 主要功能
- ? 灵活的工具检测 - 支持物品标签(
#axes)、明确的材质列表,或两者结合,并支持排除特定物品(例如排除 wooden_axe,以避免与 WorldEdit 冲突)。
- ?️ 自定义工具要求 - 可以要求工具具备特定的显示名称和/或附魔效果才能生效。
- ? Vault 经济系统 - 每次去蜡收取费用,并为 VIP 玩家提供专用的绕过权限。
- ?️ 兼容保护插件 - 尊重 WorldGuard、GriefPrevention 等插件的行为,且无硬性依赖。
- ? 沉浸式反馈 - 成功和失败时的音效与粒子效果完全可配置,支持按世界或按玩家单独设置。
- ⏱️ 智能冷却 - 支持独立的玩家级和方块级冷却时间,并在后台自动清理。
- ? 本地化支持 - 使用 MiniMessage 格式化的翻译;包含英文和捷克语,添加更多语言只需修改一个 YAML 文件。
- ? 专为其他插件设计 - 提供五个自定义事件,允许其他开发者扩展或限制去蜡流程。
- ? 零配置启动 - 合理的默认值意味着将其放入服务器后即可立即正常工作。
? 下载渠道
为了保障你的服务器安全,请仅从官方渠道下载 UnwaxSigns:
发布列表会在首个正式版本发布后不久上线——在此之前,请从源码构建(见下文)。
?️ 安装
- 从上述任一平台下载
UnwaxSigns-<version>.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 启动或重启服务器 ——
config.yml、effects.yml 和 translations/ 将自动生成。
- 根据需要调整配置文件,然后使用
/unwaxsigns reload 应用更改。
⚠️ 请勿使用 /reload 或 /paper reload 来应用 UnwaxSigns 的配置更改 —— 始终使用 /unwaxsigns reload,以确保所有配置(配置文件、效果、翻译)都能干净地重新加载。
? 兼容性
UnwaxSigns 不挂钩到任何特定的权限或保护插件 API —— 而是基于几乎所有此类插件都已尊重的标准 Bukkit 机制构建。这意味着它与你现有的设置开箱即用,无需针对每个插件进行单独配置:
- 权限插件 - 权限检查使用标准的
sender.hasPermission(...) 调用,因此 unwaxsigns.use 和 unwaxsigns.bypass.* 节点在任何权限插件(LuckPerms、PermissionsEx、GroupManager,或纯 ops.json/permissions.yml)中都能按预期工作 —— 支持按世界、按组、按轨道等方式配置,取决于你所选插件的支持方式。
- 区域/领地保护插件 - 在去蜡之前,UnwaxSigns 会为告示牌触发一个合成的
BlockBreakEvent;如果保护插件取消了该事件,则去蜡操作将被拒绝。这涵盖了 WorldGuard、GriefPrevention、Lands、Towny 以及任何其他监听并取消受保护区域内方块破坏事件的插件 —— 无需对它们中的任何一个产生硬性依赖。如果此合成事件与其他监听器(例如响应方块破坏的事件统计或任务插件)发生冲突,可以通过 region-protection-check: false 关闭。
- Vault (软依赖) - 这是唯一的例外,因为向玩家收费需要与实际的经济提供商通信。如果存在 Vault 和已注册的经济插件,则每次使用时会根据
cost-per-unwax 收费,并通过 Vault API 格式化。如果没有 Vault,去蜡则是免费的。
? 命令与权限
展开命令与权限表
| 命令 |
别名 |
描述 |
权限 |
默认值 |
/unwaxsigns |
/unwaxsign, /uws |
显示使用帮助 |
unwaxsigns.admin |
op |
/unwaxsigns reload |
|
重新加载配置、效果和翻译 |
unwaxsigns.admin |
op |
| 权限 |
描述 |
默认值 |
unwaxsigns.use |
允许去蜡告示牌 |
true |
unwaxsigns.admin |
允许重新加载配置 |
op |
unwaxsigns.bypass.name |
绕过所需的自定义工具名称 |
op |
unwaxsigns.bypass.enchantment |
绕过所需的附魔 |
op |
unwaxsigns.bypass.cost |
绕过经济费用 |
op |
unwaxsigns.bypass.cooldown |
绕过去蜡冷却时间 |
op |
可以在 config.yml 中将权限检查完全禁用,设置为 use-permissions: false,这样无论节点权限如何,所有玩家均可使用该功能。
⚙️ 配置
完整的配置位于两个注释详尽的文件中,这些文件在首次启动时生成,并且在仓库中始终保持最新:
config.yml - 权限、通知、冷却时间、掉落物、世界限制、经济费用、工具检测和工具要求。
effects.yml - 成功和失败去蜡尝试的音效与粒子效果。
以下是一些最常被调整的选项,让你快速了解其用法:
| 选项 |
文件 |
默认值 |
功能说明 |
tool-settings.mode-type |
config.yml |
combi |
允许使用的工具来源:来自物品标签(tag)、显式列表(list),或两者兼有(combi)。 |
settings.cost-per-unwax |
config.yml |
0.0 |
每移除一次蜡的 Vault 费用;设为 0.0 表示免费。 |
settings.region-protection-check |
config.yml |
true |
通过合成 BlockBreakEvent 尊重 WorldGuard/GriefPrevention 等区域保护插件。 |
settings.notification-type |
config.yml |
actionbar |
拒绝提示消息显示的位置:actionbar(动作栏)、chat(聊天栏)或 none(不显示)。 |
tool-restrictions.enchantment-required |
config.yml |
false |
要求工具附魔特定附魔后才能生效。 |
effects.success.sound / .particle |
effects.yml |
item.axe.scrape / WAX_OFF |
成功去除告示牌上的蜡时播放的反馈音效与粒子效果。 |
工具检测模式
| 模式 |
行为 |
tag |
使用 tag-names 中的 Minecraft 物品标签(例如 #axes)。若未找到任何标签且 use-axes-tag-fallback 为 true,则回退到 #axes。 |
list |
仅使用 allowed-items 下显式列出的材料。 |
combi |
从标签集开始,再叠加 allowed-items —— 便于包含非斧头类工具,如 brush(刷子)。 |
无论当前模式如何,excluded-items 下的物品始终会被排除。
翻译
语言文件位于 translations/,并使用 MiniMessage 格式。内置了英文和捷克语版本。如需添加新语言:复制 messages_en.yml 为 messages_<code>.yml,完成翻译后在配置中设置 settings.language,然后运行 /unwaxsigns reload 即可。
? 开发者 API
UnwaxSigns 会触发其自身的 Bukkit 事件,以便其他插件能够接入除蜡流程:
| 事件 |
可取消 |
触发时机 |
PlayerPreUnwaxSignEvent |
✅ |
在任何验证之前——取消以覆盖整个流程。 |
PlayerUnwaxedSignEvent |
✅ |
验证通过后,移除蜡之前。 |
PlayerPostUnwaxSignEvent |
❌ |
告示牌成功除蜡后。 |
PlayerUnwaxDenialEvent |
❌ |
发生任何拒绝时,附带 DenialReason(SNEAKING_REQUIRED、NO_PERMISSION、COOLDOWN、WRONG_CUSTOM_NAME、WRONG_ENCHANTMENT、NOT_ENOUGH_MONEY、REGION_PROTECTED、CANCELLED_BY_PLUGIN)。 |
SignUnwaxedDropEvent |
✅ |
在配置的掉落物生成前——可以取消或修改它。 |
@EventHandler
public void onUnwax(PlayerPostUnwaxSignEvent event) {
Player player = event.getPlayer();
Block sign = event.getBlock();
// 在此处编写你的逻辑
}
目前,请直接依赖该插件的 jar 文件,并在你自己的 plugin.yml 中将 UnwaxSigns 添加为 depend/softdepend。
? 指标数据 (bStats)
UnwaxSigns 通过 bStats 报告匿名使用统计数据——包括除蜡次数、拒绝原因及类似的聚合数据——以帮助指导开发。可随时在 plugins/bStats/config.yml 中禁用。
? 许可证与致谢
根据 MIT 许可证 分发——完整文本请参阅 LICENSE。
本插件基于优秀的 PaperMC 和 Kyori Adventure API 构建。
? About
Minecraft's wax mechanic locks a sign for good - with no vanilla way back, short of breaking and replacing it. UnwaxSigns fixes that: right-click a waxed sign with an axe (or whatever tool you configure) and the wax comes right off, editable again, complete with sound and particle feedback.
It's built to disappear into your server: works out of the box with zero configuration, but every rule - which tools count, what it costs, who can bypass what, how it sounds and looks - is yours to tune.
✨ Key Features
- ? Flexible tool detection - item tags (
#axes), an explicit material list, or both combined, with exclusions (e.g. no wooden_axe, to stay out of WorldEdit's way).
- ?️ Custom tool requirements - require a specific display name and/or enchantment before a tool works.
- ? Vault economy - charge per unwax, with a dedicated bypass permission for VIPs.
- ?️ Protection-plugin aware - respects WorldGuard, GriefPrevention, and similar plugins with no hard dependency.
- ? Immersive feedback - fully configurable sounds and particles for success and failure, world- or player-only.
- ⏱️ Smart cooldowns - independent per-player and per-block cooldowns, auto-cleaned in the background.
- ? Localization - MiniMessage-formatted translations; English and Czech included, more just a YAML file away.
- ? Built for other plugins - five custom events let other developers extend or restrict the unwax flow.
- ? Zero-config start - sensible defaults mean it just works the moment you drop it in.
? Where to Download
For your server's safety, only download UnwaxSigns from official channels:
Listings go live shortly after the first release - until then, build from source (see below).
?️ Installation
- Download
UnwaxSigns-<version>.jar from one of the platforms above.
- Drop it into your server's
plugins/ folder.
- Start or restart the server -
config.yml, effects.yml, and translations/ are generated automatically.
- Tweak the config to your liking, then apply changes with
/unwaxsigns reload.
⚠️ Don't use /reload or /paper reload to apply UnwaxSigns config changes - always use /unwaxsigns reload instead, to make sure everything (config, effects, translations) reloads cleanly.
? Compatibility
UnwaxSigns doesn't hook into any specific permission or protection plugin's API - instead it builds on the standard Bukkit mechanics almost every plugin in those categories already respects. That means it works out of the box with your existing setup, whatever it is, with nothing to configure per-plugin:
- Permission plugins - permissions are checked with the standard
sender.hasPermission(...) call, so unwaxsigns.use and the unwaxsigns.bypass.* nodes work with any permission plugin (LuckPerms, PermissionsEx, GroupManager, or plain ops.json/permissions.yml) exactly the way you'd expect - per-world, per-group, per-track, however your plugin of choice supports it.
- Region/claim-protection plugins - before unwaxing, UnwaxSigns fires a synthetic
BlockBreakEvent for the sign; if a protection plugin cancels that event, the unwax is denied. This covers WorldGuard, GriefPrevention, Lands, Towny, and any other plugin that listens for and cancels block-break events in protected areas - without a hard dependency on any of them. If this synthetic event ever conflicts with another listener (e.g. a stats or quest plugin reacting to block breaks), it can be turned off with region-protection-check: false.
- Vault (soft-dependency) - the one exception, since charging players requires talking to an actual economy provider. If Vault and a registered economy plugin are present,
cost-per-unwax is charged per use and formatted through the Vault API. Without Vault, unwaxing is simply free.
? Commands & Permissions
Expand command & permission table
| Command |
Aliases |
Description |
Permission |
Default |
/unwaxsigns |
/unwaxsign, /uws |
Shows usage help |
unwaxsigns.admin |
op |
/unwaxsigns reload |
|
Reloads config, effects, and translations |
unwaxsigns.admin |
op |
| Permission |
Description |
Default |
unwaxsigns.use |
Allows unwaxing signs |
true |
unwaxsigns.admin |
Allows reloading the configuration |
op |
unwaxsigns.bypass.name |
Bypasses the required custom tool name |
op |
unwaxsigns.bypass.enchantment |
Bypasses the required enchantment |
op |
unwaxsigns.bypass.cost |
Bypasses the economy cost |
op |
unwaxsigns.bypass.cooldown |
Bypasses the unwax cooldown |
op |
Permission checks can be disabled entirely with use-permissions: false in config.yml, letting every player use the feature regardless of nodes.
⚙️ Configuration
Full configuration lives in two well-commented files, generated on first start and always up to date in the repo itself:
config.yml - permissions, notifications, cooldowns, drops, world restrictions, economy cost, tool detection, and tool requirements.
effects.yml - sounds and particles for successful and failed unwax attempts.
A few of the most-tweaked options, to give you a feel for it:
| Option |
File |
Default |
What it does |
tool-settings.mode-type |
config.yml |
combi |
Whether allowed tools come from item tags (tag), an explicit list (list), or both (combi). |
settings.cost-per-unwax |
config.yml |
0.0 |
Vault charge per unwax; 0.0 keeps it free. |
settings.region-protection-check |
config.yml |
true |
Respect WorldGuard/GriefPrevention/etc. via a synthetic BlockBreakEvent. |
settings.notification-type |
config.yml |
actionbar |
Where denial messages appear: actionbar, chat, or none. |
tool-restrictions.enchantment-required |
config.yml |
false |
Require a specific enchantment on the tool before it works. |
effects.success.sound / .particle |
effects.yml |
item.axe.scrape / WAX_OFF |
Feedback played when a sign is successfully unwaxed. |
Tool detection modes
| Mode |
Behavior |
tag |
Uses Minecraft item tags (e.g. #axes) from tag-names. Falls back to #axes if none are found and use-axes-tag-fallback is true. |
list |
Uses only the explicit material list under allowed-items. |
combi |
Starts from the tag set, then adds allowed-items on top - handy for including non-axe tools like brush. |
Items under excluded-items are always removed, regardless of mode.
Translations
Language files live in translations/ and use MiniMessage formatting. English and Czech are bundled. To add one: copy messages_en.yml to messages_<code>.yml, translate it, set settings.language accordingly, and run /unwaxsigns reload.
? Developer API
UnwaxSigns fires its own Bukkit events so other plugins can hook into the unwax flow:
| Event |
Cancellable |
Fires |
PlayerPreUnwaxSignEvent |
✅ |
Before any validation - cancel to override the whole flow. |
PlayerUnwaxedSignEvent |
✅ |
After validation passes, before the wax is removed. |
PlayerPostUnwaxSignEvent |
❌ |
After a sign is successfully unwaxed. |
PlayerUnwaxDenialEvent |
❌ |
On any denial, with a DenialReason (SNEAKING_REQUIRED, NO_PERMISSION, COOLDOWN, WRONG_CUSTOM_NAME, WRONG_ENCHANTMENT, NOT_ENOUGH_MONEY, REGION_PROTECTED, CANCELLED_BY_PLUGIN). |
SignUnwaxedDropEvent |
✅ |
Before a configured drop spawns - cancel or modify it. |
@EventHandler
public void onUnwax(PlayerPostUnwaxSignEvent event) {
Player player = event.getPlayer();
Block sign = event.getBlock();
// your logic here
}
For now, depend on the plugin jar directly and add UnwaxSigns as a depend/softdepend in your own plugin.yml.
? Metrics (bStats)
UnwaxSigns reports anonymous usage stats via bStats - unwax counts, denial reasons, and similar aggregate data - to help guide development. Disable anytime in plugins/bStats/config.yml.
? License & Credits
Distributed under the MIT License - see LICENSE for the full text.
Built on the excellent PaperMC and Kyori Adventure APIs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧