# TODO: add rapid mode where an autocrafter will craft as many items as it can in a tick.
# TODO: Extract the recipe result override logic into its own plugin.

main:         'dev.metanoia.craftmatic.Craftmatic'
name:         'Craftmatic'
version:      '3.0.6'
author:       'BornToCode'
website:      'https://www.spigotmc.org/resources/craftmatic-autocrafter.94243'
api-version:  '1.16'

load:         'POSTWORLD'

description: |
  An automatic crafting system for players that enjoy creating high-volume farms more than
  crafting large quantities of raw ingredients into more useful blocks or items.

permissions:
  craftmatic.*:
    description:  'allow full access to the CraftMatic plugin'
    children:
      craftmatic.commands.use:      true
      craftmatic.command.item-give: true
      craftmatic.command.item-mark: true
      craftmatic.command.item-show: true
      craftmatic.command.reload:    true
      craftmatic.command.show:      true

  craftmatic.commands.use:
    description: 'may use the /craftmatic command'
    default:      'op'

  craftmatic.command.item-give:
    description: 'may use "/craftmatic item give" to get a Craftmatic activator item'
    default:      'op'

  craftmatic.command.item-mark:
    description: 'may use "/craftmatic item mark" to add Craftmatic-specific data to item in hand'
    default:      'op'

  craftmatic.command.item-show:
    description: 'may use "/craftmatic item show" to display activation item config for item in hand'
    default:      'op'

  craftmatic.command.reload:
    description: 'may use "/craftmatic reload" to reload the state of the CraftMatic plugin'
    default:      'op'

  craftmatic.command.show:
    description: 'may use "/craftmatic show" to see the locations of all active automatic crafting blocks'
    default:      'op'

commands:
  craftmatic:
    description:        'Access the Craftmatic plugin.'
    usage:              'Usage: /<command>'
    permission:         'craftmatic.commands.use'
    permission-message: 'You do not have permission to use this command.'
