name: ChunkDefence
version: "4.2"
authors: [martijnpu, ThijsSmeel]
main: NL.martijnpu.ChunkDefence.Main
api-version: "1.15"
description: Minigame for Chunkdefence. Special made for Hollandcraft.com
depend: [WorldEdit]
softdepend: [Vault, PlaceholderAPI, ProtocolLib]
commands:
  chunkdefence:
    description: Main command
    aliases: [cd]
  arena:
    description: Arena commands
  shop:
    description: Teleport to the shop
  spawn:
    description: Teleport to the spawn
  chunkdefenceadmin:
    description: Admin command
    aliases: [cda, cdadmin]

permissions:
  chunkdefence.*:
    description: Allows everything
    default: false
    children:
      chunkdefence.admin.*: true
      chunkdefence.bypass.*: true
      chunkdefence.tp_spawn: true
      chunkdefence.max_players.*: true
      chunkdefence.shop.*: true

  chunkdefence.spawn:
    description: Allowes you to teleport to spawn.
    default: false

  chunkdefence.shop:
    description: Allowes you to teleport to the shop.
    default: true

  chunkdefence.max_players.<max_players>:
    description: Sets the max arena player size.
    default: false

  chunkdefence.max_players.*:
    description: No limit to max arena player size.
    default: false

  chunkdefence.shop.*:
    description: Allows you to use all shops.
    default: true
    children:
      chunkdefence.shop.arena.*: true
      chunkdefence.shop.item.*: true
      chunkdefence.shop.trap.*: true

  chunkdefence.shop.arena.*:
    description: Allows you to use all arena shops.
    default: false

  chunkdefence.shop.arena.<arena_name>:
    description: Allows you to use this arena in arena shops.
    default: false

  chunkdefence.shop.item.*:
    description: Allows you to use all item shops.
    default: false

  chunkdefence.shop.item.<item_type>:
    description: Allows you to use this item in item shops.
    default: false

  chunkdefence.shop.trap.*:
    description: Allows you to use all trap shops.
    default: false

  chunkdefence.shop.trap.<trap_index>:
    description: Allows you to use this trap in trap shops.
    default: false

  chunkdefence.bypass.*:
    description: Allows you to bypass all bypasses
    default: false
    children:
      chunkdefence.bypass.directstart: true
      chunkdefence.bypass.gamemode: true
      chunkdefence.bypass.teleport: true
      chunkdefence.bypass.arena_cooldown: true
      chunkdefence.bypass.build: true

  chunkdefence.bypass.directstart:
    description: Stops the timer from automaticly starting on join and on death.
    default: false

  chunkdefence.bypass.gamemode:
    description: Allowes you to play in other gamemodes than the given mode.
    default: false

  chunkdefence.bypass.teleport:
    description: Allowes you to teleport while in a wave.
    default: false

  chunkdefence.bypass.arena_cooldown:
    description: Allowes you to change the arena within the cooldowntime
    default: false

  chunkdefence.bypass.build:
    description: Allows you to build/break blocks.
    default: false

  chunkdefence.admin:
    description: Allows all admin commands
    default: false
    children:
      chunkdefence.admin.*: true

  chunkdefence.admin.*:
    description: Allows all admin commands
    default: op
    children:
      chunkdefence.admin.info: true
      chunkdefence.admin.teleport: true
      chunkdefence.admin.economy: true
      chunkdefence.admin.reload: true
      chunkdefence.admin.restart: true
      chunkdefence.admin.schematic: true
      chunkdefence.admin.scoreboard: true
      chunkdefence.admin.shop: true
      chunkdefence.admin.spawn: true
      chunkdefence.admin.wave: true
      chunkdefence.admin.trap: true
      chunkdefence.admin.destroy: true
      chunkdefence.admin.trap_place: true

  chunkdefence.admin.info:
    description: Allows admin to see more info of players
    default: false

  chunkdefence.admin.teleport:
    description: Allows admin to teleport to other arenas
    default: false

  chunkdefence.admin.economy:
    description: Allows admin to edit the economy
    default: false

  chunkdefence.admin.reload:
    description: Allows admin to reload the plugin
    default: false

  chunkdefence.admin.restart:
    description: Allows admin to restart the plugin
    default: false

  chunkdefence.admin.schematic:
    description: Allows admin to edit, add and delete schematics
    default: false

  chunkdefence.admin.scoreboard:
    description: Allows admin to reload scoreboards
    default: false

  chunkdefence.admin.shop:
    description: Allows admin to add and remove shops
    default: false

  chunkdefence.admin.spawn:
    description: Allows admin to edit the spawn location
    default: false

  chunkdefence.admin.wave:
    description: Allows admin to generate a custom wave
    default: false

  chunkdefence.admin.trap:
    description: Allows admin to give traps
    default: false

  chunkdefence.admin.destroy:
    description: Allows admin to destroy others traps
    default: false

  chunkdefence.admin.trap_place:
    description: Allows admin to place traps outside the player's arena.
    default: false
