Skip to content

Configuration

Escanor Targaryen edited this page Jul 1, 2021 · 15 revisions

config.yml

Path Description Values
storage-type type of db "SQLite" or "MySql"
sqlite.file specifies the file name string eg: "database.db"
mysql.username username to log the db string eg: "root"
mysql.password password to log the db string eg: ""
mysql.databaseName name of db string eg: "advancements"
mysql.host address where the db is hosted string eg: "127.0.0.0"
mysql.port port of db int eg: 10
mysql.advanced-settings.poolSize add descr int eg: 10
mysql.advanced-settings.connectionTimeout add descr int eg: 6000
config-version indicates the version of the config (not change this number) int

Database Configuration

If you are using the plugin version, you have to select the type of db in the config. Instead if you are using the shedeable version:

        @Override
	public void onEnable() {

		//if you want to the enable SqlLite
		main.enableSQLite(new File(AdvancementPlugin.getInstance().getDataFolder(), "sqlLiteDbName.db"));

		//if you want to the enable MySql
		main.enableMySQL("username", "password", "databaseName", "host", port, poolSize, connectionTimeout);
		
	}