Skip to content

Configuration

ThiagoROX edited this page Sep 7, 2026 · 9 revisions
Option Description
enabled Whether the plugin is enabled or not.
update-notifier Whether the plugin send update notification.
storage How the data is saved.
action Action to take if all listed plugins are not enabled.

Data storage

Plugin lists and groups are stored independently from config.yml. The default backend is yaml, which writes to plugins/PluginControl/data.yml.

The storage.type setting in config.yml also supports h2, sqlite, and mysql. H2 and SQLite use the configured storage.database.file; MySQL uses the host, port, database name, username, and password undera storage.database. MySQL TLS is enabled by default and can be configured with use-ssl, require-ssl, and verify-server-certificate. JDBC backends use HikariCP for pooled connections; the pool size can be adjusted with storage.database.pool-size.

Actions

Action Type Description
log-to-console Sends a warning (log-to-console inside lang.yaml) in the console.
disallow-player-login Block player from enter the server with a message (kick-message inside config.yml).
shutdown-server Shutdown the server with a warning (disabling-server inside lang.yml).

Default config.yml

enabled: false
update-notifier: false
storage:
  # yaml, h2, sqlite or mysql
  type: yaml
  database:
    file: data.db
    pool-size: 5
    host: localhost
    port: 3306
    name: plugincontrol
    username: root
    password: ""
    use-ssl: true
    require-ssl: true
    verify-server-certificate: true
# Action to take if all listed plugins are not enabled.
# log-to-console
# disallow-player-login
# shutdown-server
action: log-to-console

Clone this wiki locally