How Notifications Work
ToolsNotifier watches the items a player uses and fires a notification when durability drops low enough.
The flow
Section titled βThe flowβBukkit event β listener β "should notify?" β send notificationEvery way an item loses durability is covered by a listener: breaking blocks, melee attacks, taking armor damage, fire/burning, fishing, flint & steel, shearing, shooting a bow and elytra flight. When one fires, ToolsNotifier:
- Skips Creative-mode players, empty hands and non-damageable items.
- Resolves the itemβs enabled flag and threshold (see Thresholds & Categories).
- If the item is at or below the threshold, sends the notification through the configured channels.
Two levels
Section titled βTwo levelsβ| Level | When | Default threshold |
|---|---|---|
| Warn | Durability β€ the warn percentage | category-dependent |
| Critical | Durability β€ the critical percentage | Tools/Armor 10%, Elytra 5% |
Critical uses its own, louder message set and sound. The critical percentage must be lower than the warn percentage.
Unbreaking awareness
Section titled βUnbreaking awarenessβSettings: UnbreakingAware: trueWhen on, the remaining durability is multiplied by (Unbreaking level + 1) before being compared to the threshold. An Unbreaking III tool effectively lasts ~4Γ longer, so without this it would warn far too early. Leave it on unless you want notifications based on the raw durability bar.
Cooldown
Section titled βCooldownβSettings: NotifyDelayInSeconds: 3After a notification, a player wonβt get another for NotifyDelayInSeconds. The cooldown is global per player (across all items and channels), so rapid actions donβt spam them.
Ignoring items
Section titled βIgnoring itemsβIgnoreItems: - NETHERITE_SWORDAny material listed under IgnoreItems is never notified about, regardless of category or override.