ALB Studio

Island Storage

Give every island team a shared item storage with pages, put-in and take-out rights, slot upgrades and a history of who moved what.

Docs updated · What changed

On this page

What it is forLink to this section

The Island Storage is a shared chest for the whole island team. You open it with a command from anywhere, so the team can pool items without building a chest room. The storage:

  • starts small (one row) and grows with ranks and upgrades, up to several pages,
  • lets you decide which roles may only put items in and which may also take them out,
  • keeps a history of who put in and took out what,
  • is live: when two team mates look at the same page, both see every change at once.

The storage always belongs to your own island: the one you own, or the one whose team you are in. Trusted players use the storage of their own island, not yours.

To install it, put ALBSkyblock-Storage.jar into plugins/ALBSkyblock/addons/ and restart. See Addons.

Open the storageLink to this section

Type /is storage. To jump to a page, add its number: /is storage 2. You can also add a button to any island menu with the function open-storage (see Add a storage button to a menu).

The first time after a restart, the storage may take a moment to load. You see "Opening the island storage..." and it opens by itself.

What you seeLink to this section

The storage is a chest. Its top rows hold your items. The bottom row has the buttons:

ButtonWhat it does
Island Storage (chest icon)Shows how many slots are used, how full it is, the number of items, the page and where the size comes from (default, your rank or an upgrade).
Previous page / Next pageGo to the other pages. Only shown when there is a page to go to.
CloseCloses the storage, or goes back to the menu you came from.
Storage HistoryOpens the history.

The chest is only as big as it needs to be. With 9 slots it has one row of items. Each page holds up to 45 slots (5 rows). More slots go on the next page.

Slots can look three ways:

SlotWhat it means
Empty or holding an itemA normal slot: put items in and take them out.
Gray pane, "Locked slot"Not unlocked yet. Buy more slots in /is upgrade.
An item in a slot past the storage sizeThe storage got smaller. You can take this item out, but not put anything back. Once empty, the slot turns locked.

Put items in and take them outLink to this section

  1. Type /is storage.
  2. To put items in, click them into an empty slot, drag them in, or shift-click them in your own inventory. Shift-click fills matching stacks first, then empty slots.
  3. To take items out, click them like in any chest, or shift-click them into your inventory.
  4. Close the storage when you are done. Your changes are saved.

Rules:

  • Opening the storage and putting items in needs the Open the island storage and put items in right. Members, officers and co-owners have it by default.
  • Taking items out needs the Take items out of the island storage right. Officers and co-owners have it by default. Members don't: they get "Your role may put items in, but not take them out."
  • If your role or team changes while the storage is open, it closes. You get "You can't use this island storage any more."
  • Double-click to collect items, and bundles, don't work in the storage.
  • Any item can go in, Nexo items too. But a storage has a size limit for item data (max-size-kb, 8 MB by default). Full shulker boxes and written books are large. When the storage is too full of item data, you get "The island storage is too full of item data to take this."

The historyLink to this section

Click Storage History in the storage, or type /is storage log. It lists, newest first, who put in or took out which item, how many and how long ago. Changes made by staff are marked "(staff)".

Click Show at the bottom to switch between Everything, Put in and Taken out.

  • You need the right to open the storage to see its history.
  • Moves are added up per player and item, and written when that player closes the storage (or every 30 seconds). If you put in 64 cobblestone and take 10 back before closing, the history shows 54 put in.
  • History older than 30 days is removed (history-keep-days).

CommandsLink to this section

CommandWhat it doesIsland right
/is storageOpens the storage at page 1.Open the island storage and put items in
/is storage <page>Opens the storage at that page.Open the island storage and put items in
/is storage logOpens the history. Also /is storage history.Open the island storage and put items in

All of them need the server permission albskyblock.command.storage, which every player has by default. Taking items out also needs the Take items out of the island storage right.

Island rightsLink to this section

The storage adds two island rights. Teams change them in /is permissions. The owner always has both.

RightKeyMemberOfficerCo-owner
Open the island storage and put items instorageYesYesYes
Take items out of the island storagestorage_takeNoYesYes

Trusted players have neither by default. To change the defaults for every new island, use /is admin editor > Default Permissions, or island-defaults.permissions in config.yml. See Server defaults.

PermissionsLink to this section

PermissionDefaultWhat it does
albskyblock.command.storagetrueUse /is storage and the storage menus. Take it away to block the storage for a group.
albskyblock.storage.slots.<N>falseThe island storage has N slots. Read from the island owner.
albskyblock.adminop/is admin storage.

How many slotsLink to this section

Every island starts with 9 slots (one row). It can get more in two ways:

  • Ranks. If the island owner has albskyblock.storage.slots.<N>, the highest N counts. The last value seen is kept while the owner is offline, so the storage does not shrink when they log off.
  • Upgrades. The Upgrades addon can sell more slots with the upgrade type storage.

The highest of default-slots, the rank and the upgrade wins. It is capped at max-slots (135 by default, which is 3 pages).

When the size changes while someone has the storage open, it closes with "The island storage changed size. Open it again with /is storage." Nothing is lost.

Let players buy more slotsLink to this section

The Upgrades addon ships with a Storage Slots upgrade already set up. value is the new number of slots:

plugins/ALBSkyblock/addons/upgrades/config.yml
  storage:
    type: storage
    name: "&#7DD3FCStorage Slots"
    icon: CHEST
    tiers:
      - {value: 18, cost: 5000, requirements: ["level:2"]}
      - {value: 27, cost: 12000, requirements: ["level:5"]}
      - {value: 36, cost: 20000, requirements: ["level:10"]}
      - {value: 45, cost: 35000, requirements: ["level:15"]}
      - {value: 63, cost: 50000, requirements: ["level:20"]}
      - {value: 81, cost: 75000, requirements: ["level:28"]}
      - {value: 90, cost: 100000, requirements: ["level:35"]}
      - {value: 108, cost: 140000, requirements: ["level:42"]}
      - {value: 126, cost: 190000, requirements: ["level:50"]}
      - {value: 135, cost: 250000, requirements: ["level:60"]}

Change the tiers in /is admin editor > Addons > Upgrades. Use multiples of 9, so every row is full. A tier above max-slots only gives max-slots, so raise max-slots first if you want bigger storages.

Make the storage bigger for everyoneLink to this section

  1. Open /is admin editor > Addons > Island Storage.
  2. Click Starting slots and type the new number, like 18 for two rows.
  3. If you want more than 135 slots, click Most slots and type the new maximum.

If the storage gets smallerLink to this section

A storage can shrink, for example when you lower default-slots or max-slots, or the owner loses a rank. Items are never deleted. Items in slots past the new size stay where they are. Players can take them out (with the take right) but can't put anything back there.

When an island is deletedLink to this section

When an island is deleted, its storage closes for everyone and is removed. What happens to the items depends on on-delete:

  • give-owner (default): the owner gets every item. Online, the items go into their inventory and what does not fit drops at their feet. Offline, they get the items the next time they join.
  • lose: the items are gone.

The storage history is deleted with it.

Works with other addonsLink to this section

AddonWhat it does with the storage
UpgradesThe storage upgrade type gives more slots. A bought upgrade applies at once.

The storage adds no requirement types and no leaderboard boards.

Saving and safetyLink to this section

The storage is built so items can't be copied or lost:

  • Everyone looking at the same page shares one chest, so the same item can't be taken twice.
  • Changes are saved when the last viewer closes the storage, every 30 seconds, and when the server stops.
  • If a save fails, the storage is closed and locked for everyone until a save works again. Players see "The island storage could not be saved, so it was closed and locked until it can. Nothing was lost." The save is tried again every 30 seconds.
  • If even the save at server stop fails, the newest contents are written to plugins/ALBSkyblock/addons/storage/storage-failed/<island>-<time>.b64, and the console says so. The last good save stays in the database.

ConfigurationLink to this section

The file is plugins/ALBSkyblock/addons/storage/config.yml. These are the defaults:

plugins/ALBSkyblock/addons/storage/config.yml
# Island Storage addon (/is storage): a chest of items the whole island team shares.
# Also editable in game: /is admin editor > Addons > Island Storage.
# Who may open it, put in and take out: /is permissions (Island Storage rights).
# Members may open it and put items in; officers may also take items out (defaults).

# Slots every island starts with. 9 slots = one row.
default-slots: 9

# Most slots a storage may ever have. 45 slots = one page, so 135 = 3 pages.
# The island owner's highest albskyblock.storage.slots.<N> gives more, and so does the
# Upgrades addon (type storage). The highest of the three wins, capped here.
max-slots: 135

# When an island is deleted: give-owner (the owner gets every item: in their inventory when
# online, else on their next join) or lose.
on-delete: give-owner

# Days the storage history is kept (0 = forever).
history-keep-days: 30
# Most history lines shown in the history menu.
history-size: 200

# Biggest a storage may get when saved, in KB (8192 = 8 MB). Putting in more is refused, so the
# database never rejects a save for size (written books and filled shulkers add up fast).
max-size-kb: 8192
OptionDefaultWhat it does
default-slots9Slots every island starts with. From 1 to max-slots.
max-slots135Most slots a storage can have, from ranks and upgrades too. From 1 to 900 (20 pages).
on-deletegive-ownerWhen an island is deleted: give-owner or lose.
history-keep-days30Days the history is kept. 0 = forever. Old lines are removed at start and every 6 hours.
history-size200Most lines shown in the history menu (10 to 1000).
max-size-kb8192Biggest a storage may get in the database, in KB (64 to 32768). Putting in more is refused.

After editing the file, run /is admin reload. Open storages pick up a new size within a second.

In-game editorLink to this section

Open /is admin editor > Addons > Island Storage. Click a button and type the new value in chat.

ButtonOption
Starting slotsdefault-slots
Most slotsmax-slots
Island deletedon-delete: click to switch between "The owner gets them" and "They are lost".
Keep historyhistory-keep-days (0 = forever)

history-size and max-size-kb are only in the file.

PlaceholdersLink to this section

PlaceholderReturnsExample
%albskyblock_storage_used%Slots in use. - until the storage is first loaded.12
%albskyblock_storage_capacity%Slots the storage has.27
%albskyblock_storage_percent%How full it is, 0 to 100.44

In island menus the same values are {storage-used}, {storage-capacity} and {storage-percent}. See Placeholders.

Admin commandsLink to this section

CommandWhat it does
/is admin storage <player>Opens the storage of that player's island. In game only.

<player> is anyone on the island: the owner or a team member. You can put in and take out everything, whatever the island rights say. Your changes show in the island's history marked "(staff)". You need albskyblock.admin.

The storage's menus are in plugins/ALBSkyblock/addons/storage/menus/. Change them in /is admin editor > Menus.

FileWhat it is
storage.ymlThe title and the bottom row of the storage.
storage-log.ymlThe history menu.

storage.yml works differently from other menus, because the storage is a chest whose size follows the island's slots:

  • The title can use {page} and {pages}.
  • slot is the column of the bottom row: 0 (left) to 8 (right). Keep the buttons in row 1 of the file (slots 0 to 8).
  • The buttons are info, previous, next, log and close. What they do is fixed: you can only change their look.
  • filler (the empty columns of the bottom row) and locked (the look of locked slots) are kept in row 2 of the file. Their slot is ignored.
  • Button names and lore can use {used} {capacity} {free} {percent} {bar} {items} {page} {pages} {source}.

storage-log.yml can use {filter} {count} {used} {capacity}, and per line {who} {item} {amount} {when} {staff}.

Add a storage button to a menuLink to this section

Any island menu can open the storage. Add a button with one of these functions:

FunctionOpens
open-storageThe storage
open-storage-logThe history

For example, in a menu file:

YAML
  storage:
    slot: 23
    item: BARREL
    name: "&#7DD3FCIsland Storage"
    lore:
      - "&8▪ &7Slots used: &f{storage-used}&7/&f{storage-capacity}"
    actions:
      - "[function] open-storage"

Or add it in /is admin editor > Menus. See Menus and messages.

MessagesLink to this section

The storage's messages are in plugins/ALBSkyblock/addons/storage/lang.yml, in the sections storage and storage-editor. Change them in /is admin editor > Messages. See Messages.

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