name: NBTProxy
# This is replaced at build time with the appropriate version number.
version: 2.1.0
description: A library used by other plugins to provide access to NBT tags.
author: MrBlobman
website: https://github.com/MrBlobman/NBTProxy
main: io.github.mrblobman.nbt.plugin.NBTProxy

commands:
  nbtproxy:
    description: Get information about the plugin.
    aliases: [nbtlib, nbtapi]
    usage: /<command>
  nbt:
    description: Interact with nbt tags from various sources.
    usage: /<command> query_type type [nbt_data...]

permissions:
  nbtproxy.*:
    description: Gives access to all nbt read commands (get).
    default: op
    children:
      nbtproxy.get.*: true

  nbtproxy.read.*:
    description: Gives access to all nbt read commands (get).
    default: op
    children:
      nbtproxy.read.item: true
      nbtproxy.read.block: true
      nbtproxy.read.entity: true
      nbtproxy.read.file: true

  nbtproxy.write.*:
    description: Gives access to all nbt write commands (set | add).
    default: false
    children:
      nbtproxy.write.item: true
      nbtproxy.write.block: true
      nbtproxy.write.entity: true
      nbtproxy.write.file: true
