Sueta

DurabilityWarner

1.1

This plugin will warn players when the durability is getting low on their tools.

·Plugin

This is a simple plugin that warns your players when the durability is getting low on their tools and armour.

How to configure the plugin:
You edit all the settings in the "config.yml".

Add the materials you want the plugin to listen for to the "materials" list.
Edit "durability" to change the warning messages for each durability and material.
The "durability.default" section is the messages that the plugin will use
for materials that doesn't have any custom messages under the "durability.custom" section.
The "durability.custom" section is the messages that the plugin will use for each specified material.
Enable "title" if you want to send the warning messages as a title instead of a normal chat message.

Permission: You can use "dw.use" to limit who will get the warning messages.

config.yml
# DurabilityWarner - Made by: Grossen
# config.yml

# The tools the plugin will listen for.
# Accepted materials: _SPADE, _AXE, _PICKAXE, _SWORD, _HELMET, _CHESTPALTE, _LEGGINGS, _BOOTS,
# FISHING_ROD, FLINT_AND_STEEL, BOW, CARROT_STICK, SHIELD and SHEARS.
materials:
  - 'IRON_SPADE'
  - 'IRON_AXE'
  - 'IRON_PICKAXE'
  - 'IRON_SWORD'
  - 'DIAMOND_SPADE'
  - 'DIAMOND_AXE'
  - 'DIAMOND_SWORD'
  - 'DIAMOND_PICKAXE'
  - 'IRON_HELMET'
  - 'IRON_CHESTPLATE'
  - 'IRON_LEGGINGS'
  - 'IRON_BOOTS'
  - 'DIAMOND_HELMET'
  - 'DIAMOND_CHESTPLATE'
  - 'DIAMOND_LEGGINGS'
  - 'DIAMOND_BOOTS'
  - 'FLINT_AND_STEEL'
  - 'BOW'
  - 'SHIELD'

# Here can you set the warning messages for each durability.
# The 'default' section is the messages that the plugin will use
# for materials that doesn't have any custom messages under the
# 'custom' section.
# The 'custom' section is the messages that the plugin will use
# for each specified material.
# {item} will be replaced by the material name.
durability:
  default:
    10: '&4WARNING &cLow durability on your {item}!'
    5: '&4WARNING &cStop! You''re going to break your {item}!'
    0: '&4WARNING &cSTOP! Only 1 durability left on your {item}!'
  custom:
    DIAMOND_HELMET:
      10: '&4WARNING &cYour Diamond Helmet will soon break. WATCH OUT!'
      4: '&4WARNING &cYour Diamond Helmet have only 5 durability left!!'
      0: '&4WARNING &cThis is the LAST durabilty on your Diamond Helmet!!'
    BOW:
      10: '&4WARNING &cSoon you cannot fish anymore because your phishing road will break soon!'
      4: '&4WARNING &cYou only have 5 durability left now on your epic phishing road!'
      0: '&4WARNING &cLAST CHANCE. Only 1 durability left now on your epic phishing road!'

# Enable this if you want to send the warning message
# as a title instead of a normal chat message.
title: false

github-logo.png

I would be really happy if you leaved a review of the plugin.
stars.png
Before leaving a bad review of the plugin, please tell me why you are leaving a bad review of the plugin so i hopefully can change the thing you are not liking.

Similar projects

Plugin →