-
Notifications
You must be signed in to change notification settings - Fork 2
SaveType
Ashley Thew edited this page May 16, 2021
·
1 revision
This plugin saves either to SQLite or MySQL.
All item information like custom names, lore, enchantments, attributes and unbreakable tag's are all saved to the database. This also included any modded items.
- For SQLLite it will create a database.db in your bank folder.
- Complete.
- To use mysql change the Bank.SaveType in your config.yml
- Edit the mysql.yml with your mysql settings. (If incorrect it will switch to sqlite)
- If using exp/money/loan interest, make sure to set one server to be the main for each, these will handle the offline interests.
- Complete.
Both MySQL and SQLite will create the same table and data structure.
- bank_info_type holds the unique id for each player data class
- bank_player_info holds the players data held by the uuid and unique class id index, data is stored as json
- bank_player_lock stores if a player is currently loaded on a server, note that if a server crashes it won't reset this.
- bank_uuids holds an updated list for uuid -> name and vise versa storage
If a player encounters the locked/loading message, this is because their account data wasn't released by another server before they loaded in.
This can happen if they switch servers too fast before the previous server saves.
The account will automatically unlock after 10 seconds.
(Not implemented, but due soon) Follow the footsteps to convert to/from sqlite/mysql.
- Edit mysql.yml values to your database values
- Edit config.yml and set Bank.Convert to true
- Restart server do not reload!
- Server will convert, note players may not join whilst it is converting.