ALB Studio

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.db unless 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

TableWhat it holds
alb_skyblock_islandsOne row per island: id, owner, place in the grid, world, centre, size, spawn point, schema, state and when it was made.
alb_skyblock_island_flagsIsland settings and rights each island changed, plus small values addons keep per island (see below).
alb_skyblock_island_membersWho has which role on which island: team members and trusted players.
alb_skyblock_island_bansWho is banned from which island.
alb_skyblock_activityThe island activity (/is activity) and the admin log (/is admin log).
alb_skyblock_helpersWhere 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.

AddonTables
Island Bankalb_skyblock_bank (balance), alb_skyblock_bank_members (what each member put in and took out), alb_skyblock_bank_log (history)
Homesalb_skyblock_island_homes
Levelalb_skyblock_island_levels (island value, XP, block counts and milestones)
Island Missionsalb_skyblock_missions (progress), alb_skyblock_mission_picks (the island's current daily and weekly missions)
Island Storagealb_skyblock_storage (the items), alb_skyblock_storage_log (history)
Visitalb_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.

KeyWhat it is
setting.<key>An island setting, for example setting.pvp.
perm.<role>.<right>A right of one role, for example perm.visitor.break.
lockedThe island is locked (/is lock).
admin.sizeA size fixed with /is admin setsize.
upgrade.<id>Upgrades addon: the tier the island bought.
generator.*Generators addon: unlocked and chosen tiers, blocks made.
biomeBiome addon: the island's biome.
info.<section>Island Info addon: which parts visitors see.
leaderboard.hiddenThe 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/:

FileWhat it holds
islands.ymlThe island choices for /is create.
templates/The island schemas (<name>.nbt and <name>.yml).
pending-refunds.ymlItems 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.logEvery /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-days days (60 by default, 0 = never). logs/admin.log is 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:

  1. The database. With SQLite, that is the file plugins/ALBCore/database.db. With MySQL, use your host's backup or a database dump.
  2. The plugins/ALBSkyblock/ folder: config, messages, menus, schemas, island choices and addon settings.
  3. ALBCore's player data, if player-data.storage is yaml: the plugins/ALBCore/playerdata/ folder.
  4. The island world folder (skyblock by 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.

Type a class, method, config key or topic. Use the arrow keys and Enter to open a result.