Server Durability Warning

插件

· 作者 faze4ik

服务器耐久度警告!是一款 Minecraft 的客户端-服务端模组(或插件),用于在玩家的工具、武器和护甲耐久度急剧降低时发出警告。

0 本站下载 0 关注 更新于 1 个月前

最新 1.3.0 · 26.1.2 · Bukkit / Paper

一键开服(送7天)

警告!镐子即将损坏。/ Warning! The pickaxe will break soon.

重新加载服务器耐久度警告:/dw reload

RU EN

RU

? 主要功能

提前预警——该模组会跟踪背包和快捷栏中每个物品的当前耐久度。当耐久度低于设定的阈值时,你会收到提示。

通知类型:

聊天消息(支持颜色和格式设置)。

屏幕弹出通知(类似 Toast 提示)。

声音信号(从游戏资源中选择音效)。

HUD 指示器(物品旁边的条形图或图标)。

针对不同类别的独立设置:工具、武器、护甲、其他物品(例如钓竿、剪刀、盾牌)。

忽略特定物品——可以将特定物品(例如附魔了“经验修补”的物品)排除在跟踪之外。

服务器同步——如果模组安装在服务器上,设置可以应用于所有玩家(可选),而客户端更改则保存在本地。

多语言支持——通过修改配置文件中的相应行,可以将消息翻译成任何语言。

✅ 使用优势

节省资源——你可以及时得知钻石镐即将损坏,从而修复它而不丢失稀有材料。

灵活性——每位玩家都可以根据自己的游戏风格自定义通知方式(有人喜欢声音提示,有人只喜欢聊天消息)。

对于管理员而言——服务器上的集中式警报管理有助于减少关于物品“突然”丢失的投诉。

轻量级——由于检查以可配置的间隔进行,因此不会给系统带来负担。

? 配置建议

将阈值设置为 15–20%,以便你有时间找到修复台或使用铁砧。

如果你在玩硬核服务器,请增加检查频率(check_interval = 20)以实现更快的响应。

将你大量频繁使用的物品(例如用于快速挖掘的石镐)添加到忽略列表中。

将声音设置为明显但不刺耳的内容——例如安维尔(Anvil)落下的声音。

? 结语

Server Durability Warning! ——对于那些珍视自己工具和护甲的玩家来说,这是一个不可或缺的助手。通过配置文件进行详细设置,你可以让它完全符合你的需求;而服务器管理员也能为整个社区提供统一的规则。安装此模组,从此告别在最关键时刻钻石镐突然损坏的不愉快惊喜!

如果你对具体参数有疑问,或者想要添加新功能——请访问模组的官方页面(或在本文章评论区留言)。祝你游戏愉快!?

EN

? Key Features

Early warning - The mod tracks the current durability of each item in your inventory and on the hotbar. When it falls below a given threshold, you receive a signal.

Notification types:

Chat message (with color and formatting options).

Pop-up notification on the screen (similar to toast notifications).

Sound signal (select a sound from game resources).

Indicator on HUD (a bar or icon next to the item).

Separate settings for different categories: tools, weapons, armor, and other items (e.g., fishing rods, shears, shields).

Ignore items - you can exclude specific items (e.g., those enchanted with "Mending") from tracking.

Server synchronization - If the mod is installed on the server, settings can be applied to all players (optional), while client-side changes are saved locally.

Multilingual support - messages can be translated into any language by modifying the corresponding lines in the config file.

✅ Benefits of using

Resource saving - You will know in time that your diamond pickaxe is about to break, allowing you to repair it without losing rare materials.

Flexibility - Each player can customize notifications to suit their playstyle (some prefer sound alerts, others prefer chat messages only).

For administrators - Centralized alert management on the server helps reduce complaints about the "sudden" loss of items.

Lightweight - The mod does not strain the system, as checks occur at configurable intervals.

? Tuning Tips

Set a threshold of 15-20% so you have time to find a crafting table to repair or use an anvil.

If you are playing on a hardcore server, increase the frequency of checks (check_interval = 20) for faster response.

Add items that you constantly use in large quantities to the ignore list (e.g., stone pickaxes for quick mining).

Set the sound to something noticeable but not annoying - e.g., the sound of an anvil falling.

? Conclusion

Server Durability Warning! - An indispensable assistant for those who value their tools and armor. Thanks to detailed configuration via the config file, you can make it as convenient as possible for yourself, while server administrators can ensure uniform rules for the entire community. Install the mod and forget about unpleasant surprises like a suddenly broken diamond pickaxe at the most crucial moment!

If you have questions about specific parameters or want to add a new feature, check out the official mod page (or leave a comment on this article). Have fun playing! ?

config.yml
# 作者:Faze4ik
threshold: 42
check-interval-ticks: 10
warning-repeat-seconds: 4
sound:
  enabled: true
  name: BLOCK_NOTE_BLOCK_PLING
  volume: 1.0
  pitch: 1.2
tools:
  pickaxe: true
  sword: true
  axe: true
armor:
  enabled: true
messages:
  ru:
    warning: "&#ff1824⚠ &f您的物品 &#51ff18%item% &f即将损坏!耐久度:&#51ff18%remaining%"
    broken: "&#ff1824✖ &f物品 &#51ff18%item% &f已损坏!"
  en:
    warning: "&#ff1824⚠ &f您的物品 &#51ff18%item% &f即将损坏!耐久度:&#51ff18remaining%"
    broken: "&#ff1824✖ &f物品 &#51ff18%item% &f已损坏!"

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源