Setting up a database
Sonar can be connected to a database to retain verified player data even after server restarts.
Defines the type of database used by Sonar. Options include NONE, MYSQL, MARIADB, and H2. Default: NONE
type: NONESpecifies the file name for the H2 database stored in Sonar's plugin directory. Default: verified_players
filename: verified_playersThe host address for SQL database authentication. Default: localhost
host: localhostThe port number for SQL database authentication. Default: 3306
port: 3306The name of the SQL database. Default: sonar
name: sonarThe username and password are used by Sonar to authenticate the connection to the database. The connection will fail if no username or password are given.
username: 'my_username'password: 'my_p@ssw0rd!'The number of days Sonar should retain verified players in the database. Default: 5
maximum-age: 5Last updated