-
Notifications
You must be signed in to change notification settings - Fork 7
Configuration
Escanor Targaryen edited this page Jul 1, 2021
·
15 revisions
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 |
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);
}
UltimateAdvancementAPI Wiki © 2021 fren_gor, EscanorTargaryen is licensed under CC BY-SA 4.0.
Except where otherwise noted, code snippets inside the wiki are licensed under The Unlicense.