main: io.delilaheve.CustomAnvil
name: CustomAnvil
prefix: "Custom Anvil"
version: ${version}
folia-supported: true
description: Allow to customise anvil mechanics
api-version: 1.21
load: POSTWORLD
authors: [ DelilahEve, alexcrea ]
libraries: [${libraries}]

commands:
  customanvil:
    description: Generic command for custom anvil
    aliases:
      - ca

permissions:
  ca.affected:
    default: true
    description: Player with this permission will be affected by the plugin
  ca.bypass.fuse:
    default: false
    description: Allow player to combine every enchantments to every item (no custom limit)
  ca.bypass.level:
    default: false
    description: Allow player to bypass every level limit (no custom limit)
  ca.command.reload:
    default: op
    description: Allow administrator to reload the plugin's configs
  ca.command.diagnostic:
    default: op
    description: Get debug information about the plugin and server
  ca.command.enchantment:
    default: op
    description: Allows to set enchantment to holden item
  ca.config.edit:
    default: op
    description: Allow administrator to edit the plugin's config in game
  # color permissions
  ca.color.code:
    default: op
    description: Allow player to use color code if enabled (toggleable)
  ca.color.hex:
    default: op
    description: Allow player to use hexadecimal color if enabled (toggleable)
  ca.rename.minimessage:
    default: op
    description: Allow player to use minimessage formating on rename if enabled (toggleable) (only legacy compatible at the time)
  # lore edit permissions
  ca.lore_edit.book:
    default: op
    description: Allow player to edit lore via book and quil if enabled (toggleable)
  ca.lore_edit.paper:
    default: op
    description: Allow player to edit lore via paper if enabled (toggleable)
  # dialog menu permission
  ca.rename.dialog:
    default: op
    description: Allow player to use the dialog rename menu (toggleable)


# soft depend on old name of this plugin (UnsafeEnchantsPlus), so I can disable it if it is on the same server
# Also depend to other plugin for compatibility
softdepend:
  - UnsafeEnchantsPlus
  - ProtocolLib
  - Disenchantment
  - EnchantsSquared
  - EcoEnchants
  - eco
  - ExcellentEnchants
  - HavenBags
  - SuperEnchants
  - EnchantedBook
