Flectone LogoFlectonePulse

Database

Storage location for important player information

Information

You can use environment variables in the database fields, for example ${VALUE}


Setting

Path config.yml → database
database:
  use_playtime_tracking: true
  type: "H2"
  name: "flectonepulse"
  host: "127.0.0.1"
  port: "3306"
  user: "root"
  password: "1234"
  parameters: "?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8"
  prefix: ""
  pool_settings:
    max_size: 10
    min_idle: 10
    max_lifetime: 1800000
    keepalive_time: 0
    connection_timeout: 5000

use_playtime_tracking

Whether to store the player's playtime in the database. If disabled, the /online and /toponline commands will not work, the newbie module will not be able to detect a newcomer, and join will not know that the player has already been on the server

type

The type of database used; currently supported types are:

TypeExplanation
SQLiteLocal, stored as a file
MySQLServer-based, requires connection
MariaDBServer-based, requires connection
H2Local, stored as a file
PostgreSQLServer-based, requires connection

name

Database name

host

Address of the server where the database is located

port

Connection port for the database on the server

user

Username to be used for connecting to the database

password

Password for connecting to the database

parameters

Database connection parameters

prefix

Warning

If you change the prefix, the tables will be new and previous player data will not be used.

Prefix for database tables; if empty, the fp_ prefix will be used.

pool_settings

Database connection pool settings

max_size

Maximum number of connections in the pool

min_idle

Minimum number of idle connections that the pool tries to maintain

max_lifetime

Maximum lifetime of a single connection in milliseconds, after which it is closed and replaced with a new one

keepalive_time

Interval for checking idle connections in milliseconds. If 0, the check is disabled

connection_timeout

Maximum time to wait for a connection from the pool in milliseconds before an error is thrown

Last update August 14, 2026
Edit on Github

On this page

Authors of page