Main Configuration

The config.yml file in the root of the plugins/ClearLaggEnhanced/ folder is the primary control center for the plugin.

Module System

ClearLaggEnhanced uses a modular system. In the config.yml, you can globally enable or disable entire modules. The config.yml is the only runtime source of truth for the enabled/disabled state of each module.

modules:
  entity-clearing: true
  mob-limiter: true
  spawner-limiter: true
  misc-entity-limiter: true
  chunk-finder: true
  performance: true
  wildstacker: false
  rosestacker: false
  modernshowcase: true
  • true: The module is active and its specific settings will be loaded from the module/ folder.
  • false: The module is completely disabled and will not run.

Each module has its own configuration file in the module/<module-name>/config.yml path. See the Module Configuration page for more details.

Database Settings

The database section determines where the plugin stores its data (such as statistics and entity records). It supports SQLite and MySQL.

database:
  enabled: true
  type: "sqlite" # sqlite or mysql
  file: "clearlagg.db"
  mysql:
    host: "localhost"
    port: 3306
    database: "clearlagg"
    username: "root"
    password: "password"
    ssl-mode: "PREFERRED"
    properties: {}
  pool:
    maximum-pool-size: 10
    minimum-idle: 2
    connection-timeout-ms: 10000
    idle-timeout-ms: 600000
    max-lifetime-ms: 1800000
    keepalive-time-ms: 0
    validation-timeout-ms: 5000