Database
What ALBSkyblock stores in ALBCore's database, in player data and in files, what to back up, and how to choose between SQLite and MySQL.
Docs updated · What changed
On this page
One shared databaseLink to this section
ALBSkyblock has no database settings of its own. It stores everything in ALBCore's database, the one set in plugins/ALBCore/config.yml under database:
sqlite(the default): one file,plugins/ALBCore/database.dbunless you renamed it. Nothing to set up.mysql: a MySQL server, with its login in the same file.
Every table name starts with ALBCore's table prefix, alb_ by default. How to choose and set up the database is on ALBCore's configuration and database pages.
Tables are created and updated by themselves on startup. ALBCore remembers which updates each plugin and addon has run in alb_schema_versions, so each one runs only once. If the database refuses an update, ALBSkyblock stops and the console says why (see Install).
What is stored whereLink to this section
Core tablesLink to this section
| Table | What it holds |
|---|---|
alb_skyblock_islands | One row per island: id, owner, place in the grid, world, centre, size, spawn point, schema, state and when it was made. |
alb_skyblock_island_flags | Island settings and rights each island changed, plus small values addons keep per island (see below). |
alb_skyblock_island_members | Who has which role on which island: team members and trusted players. |
alb_skyblock_island_bans | Who is banned from which island. |
alb_skyblock_activity | The island activity (/is activity) and the admin log (/is admin log). |
alb_skyblock_helpers | Where the island helper stands on each island (used by the Island Helper addon). |
Addon tablesLink to this section
Addons add their tables to the same database when they are installed.
| Addon | Tables |
|---|---|
| Island Bank | alb_skyblock_bank (balance), alb_skyblock_bank_members (what each member put in and took out), alb_skyblock_bank_log (history) |
| Homes | alb_skyblock_island_homes |
| Level | alb_skyblock_island_levels (island value, XP, block counts and milestones) |
| Island Missions | alb_skyblock_missions (progress), alb_skyblock_mission_picks (the island's current daily and weekly missions) |
| Island Storage | alb_skyblock_storage (the items), alb_skyblock_storage_log (history) |
| Visit | alb_skyblock_visit_profiles, alb_skyblock_visit_ratings, alb_skyblock_visit_recent |
Biome, Island Fly, Generators, Island Info, Leaderboards, Block Limits and Upgrades have no tables of their own. They keep their few values in island flags or player data.
Island flagsLink to this section
alb_skyblock_island_flags holds one row per changed value: the island id, a key and the value. Only values an island changed are stored. Everything else uses the defaults from config.yml. All flags are loaded at startup, so reading them costs nothing.
| Key | What it is |
|---|---|
setting.<key> | An island setting, for example setting.pvp. |
perm.<role>.<right> | A right of one role, for example perm.visitor.break. |
locked | The island is locked (/is lock). |
admin.size | A size fixed with /is admin setsize. |
upgrade.<id> | Upgrades addon: the tier the island bought. |
generator.* | Generators addon: unlocked and chosen tiers, blocks made. |
biome | Biome addon: the island's biome. |
info.<section> | Island Info addon: which parts visitors see. |
leaderboard.hidden | The island is hidden from the leaderboards (/is admin top hide). |
Player dataLink to this section
A few values belong to a player, not an island. They are kept in ALBCore's player data (stored as player-data.storage says: YAML files, SQLite or MySQL):
- The border style each player picked.
- When they last deleted or reset an island, and how many resets they used.
- Whether an admin turned their bypass off (
/is admin bypass). - Island Fly addon: each player's fly time.
FilesLink to this section
Some data is kept in files in plugins/ALBSkyblock/:
| File | What it holds |
|---|---|
islands.yml | The island choices for /is create. |
templates/ | The island schemas (<name>.nbt and <name>.yml). |
pending-refunds.yml | Items owed to players whose purchase failed while they were offline. They get them back a moment after they join, and the entry is removed. |
logs/admin.log | Every /is admin command, with date and time. Never cleaned. |
intro-recovery/ | A copy of a player's state while they watch the intro. It is removed when the intro ends, and given back on join after a crash. |
What is removed, and whenLink to this section
- Activity and the admin log in the database are removed after
activity.keep-daysdays (60 by default,0= never).logs/admin.logis kept. - Deleting an island removes its row, team, bans and flags. Each addon cleans up its own data for that island. The bank and storage addons first give the money and items to the owner, or not, as their settings say.
- Resetting an island keeps the team, trusted players, bans, settings and size. Homes on the island are removed, because the blocks they stood on are gone.
BackupsLink to this section
Back up often, and always before you update ALBCore, ALBSkyblock or an addon.
What to back up:
- The database. With SQLite, that is the file
plugins/ALBCore/database.db. With MySQL, use your host's backup or a database dump. - The
plugins/ALBSkyblock/folder: config, messages, menus, schemas, island choices and addon settings. - ALBCore's player data, if
player-data.storageisyaml: theplugins/ALBCore/playerdata/folder. - The island world folder (
skyblockby default). The database knows where each island is, but the blocks are in the world.
SQLite or MySQL?Link to this section
SQLite is fine for one server. Choose MySQL when your host gives you one, or when you want the data on a separate database server.
Pick before players start. ALBCore has no tool to copy its shared database from SQLite to MySQL. If you change database.type later, ALBSkyblock starts with empty tables on the new database: no islands, teams or addon data.
Player data is different: ALBCore can move it to a new storage with /albcore playerdata import. See ALBCore player data.