version: '2.0'
name: DisableSpawnerBreaking
main: xyz.arrowtan.disablespawnerbreaking.DisableSpawnerBreaking
author: GreenArrow99

description: A plugin that disables breaking of spawners and allows it only with the silk touch enchantment.

commands:
  disablespawnerbreakingreload:
    description: Reloads the DisableSpawnerBreaking plugin's configuration
    usage: /disablespawnerbreakingreload
    aliases:
      - dsbr
      - dsbreload
      - dspawnerreload
    permission: dsb.reload # Assigns the "dsb.reload" permission node to this command
  disablespawner:
    description: Toggles spawner protection on or off
    usage: /disablespawner <true|false>
    permission: dsb.disable # Assigns the "dsb.disable" permission node to this command


permissions:
  dsb.reload: # Allows players to reload the plugin's configuration
    description: Allows access to /disablespawnerbreakingreload command
    default: op
  dsb.disable: # Allows players to toggle spawner protection on or off
    description: Allows access to /disablespawner command
    default: op
  dsb.break: # Allows players to break spawners regardless of protection setting
    description: Allows players to break mob spawners
    default: op # Set to "true" by default to allow all players to break spawners unless otherwise specified
