ItemCooldown config documentation
================================

The config file is:
plugins/ItemCooldown/config.json

It uses Bukkit material names as keys.

Format
------
{
  "_settings": {
    "display": "actionbar",
    "update_ticks": 1
  },
  "MATERIAL_NAME": {
    "cooldown": 60,
    "action": ["pickup", "equip", "use", "containers"]
  }
}

Cooldown display
----------------
display - actionbar shows the countdown above the hotbar, bossbar shows it at the top of the screen,
or off disables the countdown display. When several items are cooling down, the held item is shown first;
otherwise the display cycles through the items every two seconds.

update_ticks - number of server ticks between display updates (minimum 1, default 1). One tick gives
the smoothest countdown and bossbar animation.

Combat trigger
--------------
Cooldowns start as soon as a player is damaged by another player.
This also works for projectiles shot by another player.
Only these cases are ignored:
- self-damage
- ender pearl damage
- non-player attackers

Important behavior
------------------
- the cooldown starts immediately on combat, not on first use
- already equipped items with the "equip" action are force-unequipped
- unequipped items are moved into the inventory
- if there is no inventory space, they are stored temporarily and restored later

Notes
-----
- cooldown is in seconds
- action must be a JSON array
- material names must be valid Bukkit Material names
- the config is empty by default
- if config files are deleted, reload recreates them automatically


Containers action
-----------------
containers - denies moving the configured item into or out of inventories such as chests, barrels,
shulkers, hoppers and other container views while on cooldown. Bundle interactions are also blocked.

Example
-------
{
  "_settings": {
    "display": "bossbar",
    "update_ticks": 1
  },
  "TOTEM_OF_UNDYING": {
    "cooldown": 60,
    "action": ["pickup", "use", "containers"]
  }
}
