name: CommandBlockAllow
version: ${project.version}
main: CommandBlockAllow
load: STARTUP
author: LunarCoffee
description: A simple plugin that enables non-opped users to use command blocks.

permissions:
  togglecommandblock.usecommandblocks:
    description: Allows the player to place command blocks when de-opped.
    default: true
  togglecommandblock.breakcommandblocks:
    description: Allows the player to break command blocks when de-opped.
    default: true
  togglecommandblock.editcommandblocks:
    description: Allows the player to edit command blocks when de-opped by temporarily setting op status.
    default: true
  togglecommandblock.commands:
    description: Operator commands to manage the use of command blocks.
    default: op
    children:
      togglecommandblock.commands.togglecommandblock: true
      togglecommandblock.commands.addcmdexception: true
      togglecommandblock.commands.removecmdexception: true
      togglecommandblock.commands.listcmdexceptions: true

commands:
  togglecommandblock:
    aliases: [togglecommandblock, togglecb, tcmdb]
    description: Toggles the availability of command blocks for non-opped players.
    usage: "Usage: /togglecommandblock"
    permission: togglecommandblock.commands.togglecommandblock
  addcmdexception:
    aliases: [addcmdexception, addcmdex]
    description: Marks a player who should retain operator status.
    usage: "Usage: /addcmdexception <player>"
    permission: togglecommandblock.commands.addcmdexception
  removecmdexception:
    aliases: [removecmdexception, removecmdex]
    description: Marks a player who should not retain operator status.
    usage: "Usage: /removecmdexception <player>"
    permission: togglecommandblock.commands.removecmdexception
  listcmdexceptions:
    aliases: [listcmdexceptions, listcmdex, lcmde]
    description: Lists the player who should retain operator status.
    usage: "Usage: /listcmdexceptions"
    permission: togglecommandblock.commands.listcmdexceptions
