Pack: Durability Ping - teakivy/teaks-tweaks GitHub Wiki

Pack: Durability Ping (durability-ping)

Durability Ping notifies a player when their items are below 10% durability.

Players can customize their personal settings using the /durabilityping config commmand.

Showcase

image

Config

The config for this pack can be found in the config.yml file for the plugin.

# Durability Ping
# Get notified when you damage an item with 10% less durability.
# Fully Customizable per-player with '/durabilityping config'
#
# Commands:
# /durabilityping (Permission: teakstweaks.command.durabilityping)
# /durabilityping preview (Permission: teakstweaks.command.durabilityping.preview)
# /durabilityping config (Permission: teakstweaks.command.durabilityping.set)
# /durabilityping set (Permission: teakstweaks.command.durabilityping.set)
#
# Permissions:
# teakstweaks.durability-ping
durability-ping:
  enabled: false
  # What percent to start pinging the player
  ping-at-percent: 10
  # How many seconds to wait between pings
  ping-cooldown: 45
  # Default settings for everyone (customizable per-player)
  default-settings:
    # Ping for items held in your inventory
    ping-for-hand-items: true
    # Ping for armor items
    ping-for-armor-items: true
    # Whether or not to play a sound when pinging
    ping-with-sound: true
    # Where to display durability pings (default: subtitle) [hidden, subtitle, title, chat, actionbar]
    display: subtitle

Options

enabled

  • Type - boolean
  • Default - false
  • Description - Controls whether the pack is enabled.

ping-at-percent

  • Type - int
  • Default - 10
  • Description - Controls what percent a tool must be at before pinging the player.

ping-cooldown

  • Type - int
  • Default - 45
  • Description - Controls how many seconds between pings of the player.

default-settings

  • Type - section
  • ping-for-hand-items
    • Type - boolean
    • Default - true
    • Description - Controls whether Durability Ping pings for items in the player's hand.
  • ping-for-armor-items
    • Type - boolean
    • Default - true
    • Description - Controls whether Durability Ping pings for armor items.
  • ping-with-sound
    • Type - boolean
    • Default - true
    • Description - Controls whether pings will play a sound.
  • display
    • Type - string
    • Default - subtitle
    • Description - Controls where pings are shown. (Options: hidden, subtitle, title, chat, or actionbar)

Linked Commands

Permissions

teakstweaks.durability-ping

  • Default - true
  • Description - Controls whether the player will get pings for their items.

teakstweaks.command.durabilityping

  • Default - true
  • Description - Controls whether the player can use the /durabilityping command.

teakstweaks.command.durabilityping.preview

  • Default - true
  • Description - Controls whether the player can use the /durabilityping preview command.

teakstweaks.command.durabilityping.set

  • Default - true
  • Description - Controls whether the player can use the /durabilityping set and /durabilityping config commands.

Messages

"durability_ping.name": "Durability Ping",
"durability_ping.description": "Get notified when you damage an item with 10% less durability.<newline>Fully Customizable per-player with '/duraping config'",
"durability_ping.ping.subtitle.title": " ",
"durability_ping.ping.subtitle.subtitle": "<gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.",
"durability_ping.ping.title.title": "<gold><item_type> <red>durability low!",
"durability_ping.ping.title.subtitle": "<gold><item_durability> <red>of</red> <item_max_durability> <red>remaining.",
"durability_ping.ping.chat.message": "<gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.",
"durability_ping.ping.actionbar.message": "<gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.",

durability_ping.name

  • Default - Durability Ping

durability_ping.description

  • Default - Get notified when you damage an item with 10% less durability.<newline>Fully Customizable per-player with '/duraping config'

durability_ping.ping.subtitle.title

  • Default - (Note: This is purposefully left blank, as the subtitle option has no title)
  • Placeholders
    • item_type - The item.
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.

durability_ping.ping.subtitle.subtitle

  • Default - <gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.
  • Placeholders
    • item_type - The item.
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.

durability_ping.ping.title.title

  • Default - <gold><item_type> <red>durability low!
  • Placeholders
    • item_type - The item.
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.

durability_ping.ping.title.subtitle

  • Default - <gold><item_durability> <red>of</red> <item_max_durability> <red>remaining.
  • Placeholders
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.

durability_ping.ping.chat.message

  • Default - <gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.
  • Placeholders
    • item_type - The item.
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.

durability_ping.ping.actionbar.message

  • Default - <gold><item_type> <red>durability low!</red> <item_durability> <red>of</red> <item_max_durability> <red>remaining.
  • Placeholders
    • item_type - The item.
    • item_durability - The current durability of the item.
    • item_max_durability - The maximum durability of the item.
⚠️ **GitHub.com Fallback** ⚠️