# ⚠ WARNING - THS IS NOT A CONFIGURATION FILE! ⚠
# This file is used by your server
# software when it loads the plugin.
# Do not modify this file.

# About the plugin
name: 'BetterCommandSpy'
version: '2.0.3-b28'
description: 'The rock-solid command spying plugin for SpigotMC servers.'
authors: [ 'lokka30' ]

# Information for Bukkit
main: 'me.lokka30.bettercommandspy.BetterCommandSpy' # Path to the main class
api-version: '1.13' # Leave at '1.13', not the latest version, or it won't start on older versions.

# Commands registered by the plugin
commands:
  bettercommandspy:
    description: 'Manage BetterCommandSpy.'
    usage: '/<command>'
    aliases: [ 'bcs', 'commandspy', 'cspy', 'cmdspy', 'cs' ]

# Permissions this plugin checks
permissions:
  bettercommandspy.*:
    default: 'op'
    description: 'Receive all permissions from the BetterCommandSpy plugin.'
    children:
      bettercommandspy.canListen: true
      bettercommandspy.notifications.compatibility-checker: true
      bettercommandspy.notifications.update-checker: true
      bettercommandspy.command.bettercommandspy.compatibility: true
      bettercommandspy.command.bettercommandspy.debug: true
      bettercommandspy.command.bettercommandspy.info: true
      bettercommandspy.command.bettercommandspy.reload: true
      bettercommandspy.command.bettercommandspy.toggle: true
      bettercommandspy.command.bettercommandspy.toggle.others: true

  bettercommandspy.bypass:
    default: false
    description: 'Commands sent from users with this permission will not be shown in command spy.'

  bettercommandspy.canListen:
    default: 'op'
    description: 'Ability for a player to view command spy alerts.'

  bettercommandspy.notifications.compatibility-checker:
    default: 'op'
    description: 'If configured, players with this permission will receive notifications from the compatibility checker.'

  bettercommandspy.notifications.update-checker:
    default: 'op'
    description: 'If configured, players with this permission will receive notifications from the update checker if they are not running the latest version.'

  bettercommandspy.command.bettercommandspy.compatibility:
    default: 'op'
    description: 'Ability to run the command `/bcs compatibility`.'

  bettercommandspy.command.bettercommandspy.debug:
    default: 'op'
    description: 'Ability for a player to utilise debug methods (for developers).'

  bettercommandspy.command.bettercommandspy.info:
    default: true
    description: 'Ability to run the command `/bcs info`.'

  bettercommandspy.command.bettercommandspy.reload:
    default: 'op'
    description: 'Ability to run the command `/bcs reload`.'

  bettercommandspy.command.bettercommandspy.toggle:
    default: 'op'
    description: 'Ability to run the command `/bcs on` and `/bcs off`.'
    children:
      bettercommandspy.canListen: true

  bettercommandspy.command.bettercommandspy.toggle.others:
    default: 'op'
    description: 'Ability to run the command `/bcs on` and `/bcs off` for other players.'
    children:
      bettercommandspy.toggle: true
      bettercommandspy.canListen: true