Skip to content

Configuration

Mardssss edited this page Sep 24, 2024 · 8 revisions

Configuration

The plugin uses a YAML configuration file to define regeneration settings for multiple worlds and regions. The configuration file consists of the following sections:

Debug

  • enabled: Enables or disables debug mode.

Worlds

  • world: The world name with its own regeneration settings.
    • enabled: Set to true/false to enable/disable this world from regeneration
    • regen-time: Sets the regeneration time (in ticks) for the entire world.
    • delay: Sets the delay (in ticks) before starting the regeneration task for the entire world.
    • regions: Defines regions within the world with their own regeneration settings.

Regions

  • region: The region name with its own regeneration settings.
    • enabled: Set to true/false to enable/disable this region from regeneration
    • regen-time: Sets the regeneration time (in ticks) for the region.
    • delay: Sets the delay (in ticks) before starting the regeneration task for the region.

Blacklist and Whitelist

  • blacklisted-blocks:: A list of blocks to exclude from the regeneration process.
  • whitelisted-blocks:: A list of blocks to include in the regeneration process.

Examples

Regenerating an Entire World

Replace my_world with your world name. If enabled set to false the world will not regenerate.

my_world:
  enabled: true
  regen-time: 10
  delay: 2

Regenerating Specific Regions within a World

Replace my_world with your world name. If my_world enabled set to false both regions and the world will not regenerate Replace region1 with your worldguard region name. Replace region2 with your worldguard region name. If enabled set to false the region will not regenerate.

my_world:
  enabled: true
  regions:
    region1:
      enabled: true
      regen-time: 5
      delay: 1
    region2:
      enabled: true
      regen-time: 5
      delay: 1

Clone this wiki locally