ALB Studio

Island Bank

Give every island a shared money balance with deposits, withdrawals, daily limits per role, interest, history and a richest-islands board.

Docs updated · What changed

On this page

What it is forLink to this section

The Island Bank gives every island one money balance that the whole team shares. Team members put their own money in, and roles you trust can take it out again. The bank:

  • keeps a history of every deposit and withdrawal, and how much each player put in and took out,
  • can earn interest over time,
  • has daily withdraw limits per role, so a new member can't empty it,
  • can pay for upgrades and receive mission money rewards,
  • adds a "Richest Islands" board to /is top.

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

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

Open the bankLink to this section

Type /is bank. You can also add a button to any island menu with the function open-bank (see Add a bank button to a menu).

ButtonWhat it does
Island Bank (top)Shows the balance, how much fits, a fill bar, the interest rate, when the next interest comes, and your own money.
Deposit 100 / 1,000 / 10,000Puts that much of your money in.
Deposit everythingPuts all your money in, as much as fits.
Deposit an amountAsks you to type an amount in chat.
Withdraw 100 / 1,000 / 10,000Takes that much out.
Withdraw everythingTakes the whole balance out.
Withdraw an amountAsks you to type an amount in chat.
Bank HistoryEvery change to the bank. See The history.
Who Gave WhatHow much each player put in and took out.
Richest IslandsThe island banks with the most money.
Bank SettingsDaily withdraw limits for your island. See Set daily limits.

The menu updates live: when a team mate puts money in, you see the new balance at once. A button your role may not use shows "Locked (your role may not)".

The three amounts on the quick buttons are set by the server (amounts in the configuration).

Put money inLink to this section

  1. Open /is bank.
  2. Click a Deposit button. For your own amount, click Deposit an amount and type it in chat, like 1500 or 2.5k.
  3. A yes / no menu shows the amount, the bank balance after, and your money after. Click Yes.

The money leaves your balance and goes into the bank. The owner and team members who are online get a message.

Or use a command: /is bank deposit 1500.

Rules:

  • You need the Put money in the island bank right. Members, officers and co-owners have it by default.
  • When the bank is almost full, only what fits goes in. The yes / no menu shows that smaller amount.
  • When the bank is full, you are told to upgrade it. See How much the bank holds.
  • The smallest amount is 1 by default (min-amount).

Take money outLink to this section

  1. Open /is bank.
  2. Click a Withdraw button, or Withdraw an amount and type it.
  3. Check the amount in the yes / no menu and click Yes.

The money goes into your own balance. Or use a command: /is bank withdraw 1500.

Rules:

  • You need the Take money from the island bank right. Officers and co-owners have it by default. Members don't.
  • Your role may have a daily limit: the most you may take out in any 24 hours. Members may take out 25,000 a day by default. The owner never has a limit.
  • If an amount would take you over your daily limit, nothing is taken. You are told your limit and how much you may still take out today.
  • If you ask for more than the bank holds, you get what it holds.

Typing amountsLink to this section

Wherever you type an amount, in chat or in a command, these work:

You typeMeans
1500, 1,500, 12.50That amount. Decimals work.
2.5k, 1mShort forms: 2,500 and 1,000,000.
halfHalf your money (deposit) or half the bank (withdraw).
all (or max, everything)All your money (deposit) or the whole bank (withdraw).
cancelIn chat only: stops and opens the bank again.

The yes / no menuLink to this section

By default the bank asks before money goes in or out. The menu shows the exact amount that will move. Only that amount moves: if the bank or your money changed while the menu was open, nothing moves and you are asked to try again.

Server owners can turn the question off, or only ask for bigger amounts. See confirm in the configuration.

The historyLink to this section

Bank History (or /is bank log) lists every change, newest first. Each line shows the kind, who did it, the amount, the balance after and how long ago.

KindWhat it is
DepositA player put money in.
WithdrawalA player took money out.
InterestThe bank earned interest.
PaymentThe bank paid for something, like an upgrade.
IncomeAn addon paid the bank, like a mission reward.
Staff changeStaff changed the balance with /is admin bank.

Click Show at the bottom to switch between Everything, Money in, Money out, Interest and Staff changes.

You need the See the island bank history right (members and up by default). History older than 30 days is removed (history-keep-days).

Who Gave What (/is bank members) shows each player's total deposits, total withdrawals and the difference, for as long as the island exists. These totals are never removed with old history. Players who left the team show as "left the island".

Richest islandsLink to this section

Richest Islands (/is bank top) ranks every island bank by its balance. Your own island is highlighted, and the top shows your place. Click an island to visit it (this uses the Visit addon).

Islands with an empty bank are not listed. Islands that staff hid from the leaderboards are not listed either.

Set daily limits for your islandLink to this section

The server sets a daily withdraw limit for each role. An island can set its own instead, for example to let members take out more, or nothing at all.

  1. Open /is bank and click Bank Settings (or type /is bank settings).
  2. Click a role.
  3. Type the new limit in chat:
    • an amount, like 5000 or 2.5k,
    • -1 (or none) for no limit,
    • 0 to stop that role from taking money out at all.

To go back to the server's limit, point at the role and press Q.

Rules:

  • You need the Change the island bank settings right. By default only the owner and co-owners have it.
  • You can only change roles below your own. A co-owner can change officers and members, but not co-owners.
  • The owner has no limit, and that can't be changed.
  • The limit counts what that player took out in the last 24 hours. Paying for an upgrade from the bank does not count.
  • A role also needs the Take money from the island bank right. A limit alone does not let a role take money out.

CommandsLink to this section

CommandWhat it doesIsland right
/is bankOpens the bank.-
/is bank deposit <amount>Puts money in. Short forms: d, put.Put money in the island bank
/is bank withdraw <amount>Takes money out. Short forms: w, take.Take money from the island bank
/is bank balanceShows the balance and how much fits. Short form: bal.-
/is bank logOpens the history. Also /is bank history.See the island bank history
/is bank membersOpens Who Gave What.-
/is bank topOpens Richest Islands.-
/is bank settingsOpens the bank settings.Change the island bank settings

All of them need the server permission albskyblock.command.bank, which every player has by default.

Island rightsLink to this section

The bank adds four island rights. Teams change them in /is permissions. The owner always has all of them.

RightKeyMemberOfficerCo-owner
Put money in the island bankbank_depositYesYesYes
Take money from the island bankbank_withdrawNoYesYes
See the island bank historybank_logYesYesYes
Change the island bank settingsbank_settingsNoNoYes

Trusted players have none of them 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.banktrueUse /is bank and the bank menus. Take it away to block the bank for a group.
albskyblock.bank.capacity.<N>falseThe island bank holds up to N money. Read from the island owner.
albskyblock.adminop/is admin bank.

Staff with the bypass turned on have no daily limit and can change every role in Bank Settings.

How much the bank holdsLink to this section

Every bank has a capacity: the most money it can hold. Deposits stop there, and interest never goes over it.

The capacity comes from three places:

  1. default-capacity in the config: 1,000,000 by default. Set it to 0 for no limit at all.
  2. A rank: if the island owner has albskyblock.bank.capacity.<N>, the highest N is used instead. This is only read while the owner is online. While they are offline, default-capacity is used.
  3. An upgrade: the Upgrades addon can sell a bigger bank with the upgrade type bank. When the upgrade is higher than the rank (or default), the upgrade wins.

With default-capacity: 0 the bank has no limit, so ranks and upgrades don't change anything.

Let players buy a bigger bankLink to this section

The Upgrades addon ships with a Bank Size upgrade already set up:

plugins/ALBSkyblock/addons/upgrades/config.yml
  bank:
    type: bank
    name: "&#7DD3FCBank Size"
    icon: GOLD_BLOCK
    tiers:
      - {value: 2500000, cost: 20000, requirements: ["level:10"]}
      - {value: 5000000, cost: 60000, requirements: ["level:25"]}
      - {value: 10000000, cost: 150000, requirements: ["level:45"]}

value is the new capacity. Change the tiers in /is admin editor > Addons > Upgrades. See Upgrades.

InterestLink to this section

Interest makes a bank grow by itself. By default, every 60 minutes the bank gets 1% of its balance, at most 5,000 at a time.

  • The timer starts when money first goes into the bank. After that, interest is paid every interval-minutes.
  • A payout is capped at max-payout, and never goes over the bank's capacity. A full bank gets nothing.
  • By default, interest is only paid while the owner or a team member is online (need-online-member). This stops empty islands from farming interest.
  • The online team gets a message with the amount.
  • The interest rate and the time until the next payout show in /is bank.

Turn interest off with interest.enabled: false.

When an island is deletedLink to this section

When an island is deleted, its bank closes. What happens to the money depends on on-delete:

  • refund-owner (default): the owner gets the whole balance into their own money, even if they are offline.
  • lose: the money is gone.

The bank's history and member totals are deleted with it.

Works with other addonsLink to this section

AddonWhat it does with the bank
UpgradesUpgrades can be paid from the bank (its pay-with option). With pay-with: choose, the buyer may only pick the bank when they have the Take money from the island bank right. The bank upgrade type raises the capacity.
Island MissionsMoney rewards go into the bank, as much as fits. The rest goes to the player who claimed it.
LeaderboardsAdds the board wealth ("Richest Islands"), ranked by bank balance.
Any addon with requirementsThe requirement type bank (see below).

Bank payments show as Payment and Income in the history.

The bank requirementLink to this section

The bank adds the requirement type bank. It is met when the island bank holds at least that much. Nothing is taken.

YAML
requirements:
  - "bank:10000"

Players see it as "Island bank holds <amount>", with the current balance. A value that is not an amount is never met. In the requirement editor it is called Island bank.

The wealth boardLink to this section

With the Leaderboards addon installed, /is top gets a Richest Islands board. It ranks islands by bank balance and leaves out empty banks. Its id is wealth, so its placeholders are %albskyblock_rank_wealth% and %albskyblock_top_wealth_<n>_owner%, _name%, _value% and _score%. See Leaderboard placeholders.

The board's name, description and line are in the bank's lang.yml under bank.board-name, bank.board-description and bank.board-line. Turn the board off in the Leaderboards addon's settings.

ConfigurationLink to this section

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

plugins/ALBSkyblock/addons/bank/config.yml
# Island Bank addon (/is bank): money the whole island team shares.
# Also editable in game: /is admin editor > Addons > Island Bank.
# Needs Vault and an economy plugin. Amounts are money (decimals work, e.g. 12.50).
# Who may put in, take out and see the history: /is permissions (Island Bank rights).

# Most an island bank may hold (0 = no limit). The island owner's highest
# albskyblock.bank.capacity.<N> gives more, and so does the Upgrades addon (type bank).
default-capacity: 1000000

# The quick buttons in /is bank.
amounts:
  small: 100
  medium: 1000
  large: 10000

# Smallest deposit or withdrawal.
min-amount: 1

# Ask in a yes / no menu before money goes in or out: the menu buttons, typed amounts and
# /is bank deposit|withdraw. The menu shows the exact amount; only that amount is moved.
confirm:
  deposit: true
  withdraw: true
  # Only ask for amounts of at least this much (0 = always ask).
  min-amount: 0

# Most each role may take out in 24 hours. -1 = no limit, 0 = may not take out at all.
# The island owner has no limit. They still need the "Take money from the island bank" right.
daily-withdraw-limit:
  co-owner: -1
  member: 25000
  trusted: 0

interest:
  enabled: true
  # Percent of the balance added every interval.
  percent: 1.0
  interval-minutes: 60
  # Most one payout may be (0 = no limit). Payouts never go over the bank's capacity.
  max-payout: 5000
  # Only pay while someone of the island team is online (stops AFK-free farming of offline banks).
  need-online-member: true

# When an island is deleted: refund-owner (the owner gets the money) or lose.
on-delete: refund-owner

# Tell the online team when someone puts money in or takes it out.
notify-team: true

# Days the bank history is kept (0 = forever). Totals per member are kept for good.
history-keep-days: 30
# Most history lines shown in /is bank log.
history-size: 200
OptionDefaultWhat it does
default-capacity1000000Most money a bank holds without a rank or upgrade. 0 = no limit.
amounts.small100Amount of the small Deposit and Withdraw buttons.
amounts.medium1000Amount of the medium buttons.
amounts.large10000Amount of the large buttons.
min-amount1Smallest deposit or withdrawal.
confirm.deposittrueAsk yes / no before money goes in.
confirm.withdrawtrueAsk yes / no before money comes out.
confirm.min-amount0Only ask for amounts of at least this much. 0 = always ask.
daily-withdraw-limit.<role>see aboveMost that role may take out in 24 hours. -1 = no limit, 0 = may not take out. Role keys use -: co-owner. A role not listed has no limit, so officers have none by default. Islands can set their own in Bank Settings.
interest.enabledtrueTurns interest on or off.
interest.percent1.0Percent of the balance paid each time (0 to 100).
interest.interval-minutes60Minutes between two payouts (1 to 10080).
interest.max-payout5000Most one payout may be. 0 = no limit.
interest.need-online-membertrueOnly pay while the owner or a team member is online.
on-deleterefund-ownerWhen an island is deleted: refund-owner or lose.
notify-teamtrueTell the online team about deposits and withdrawals.
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).

After editing the file, run /is admin reload.

In-game editorLink to this section

Open /is admin editor > Addons > Island Bank. Click a button and type the new value in chat, or click a switch to flip it. Changes apply at once.

ButtonOption
Bank sizedefault-capacity (0 = no limit)
Small button, Medium button, Large buttonamounts.small, amounts.medium, amounts.large
Smallest amountmin-amount
Team messagesnotify-team
Interestinterest.enabled
Interest percentinterest.percent
Interest everyinterest.interval-minutes
Biggest payoutinterest.max-payout (0 = no limit)
Needs someone onlineinterest.need-online-member
Keep historyhistory-keep-days (0 = forever)
Confirm deposits, Confirm withdrawalsconfirm.deposit, confirm.withdraw
Confirm fromconfirm.min-amount
Island deletedon-delete: click to switch between "The owner gets it" and "It is lost".
Daily limits per roledaily-withdraw-limit: click a role and type a limit (-1 = no limit, 0 = may not take out).

history-size is only in the file.

PlaceholdersLink to this section

PlaceholderReturnsExample
%albskyblock_bank_balance%Money in the island bank.$12,500.00
%albskyblock_bank_capacity%Most the bank can hold, or no limit.$1,000,000.00
%albskyblock_bank_interest%The interest rate, or none.1% every 1h 0m

In island menus the same values are {bank-balance}, {bank-capacity} and {bank-interest}. Menus also have {bank-top-<n>-owner} and {bank-top-<n>-balance} for the 10 richest banks. Money is shown in your economy plugin's format. See Placeholders.

Admin commandsLink to this section

These need albskyblock.admin and also work from the console. <player> is anyone on the island: the owner or a team member.

CommandWhat it does
/is admin bank <player> infoShows the balance, capacity, interest rate and when the next interest comes.
/is admin bank <player> logShows the last 15 history lines in chat.
/is admin bank <player> give <amount>Puts money into the bank.
/is admin bank <player> take <amount>Takes money out (at most the balance).
/is admin bank <player> set <amount>Sets the balance.

Amounts work like for players: 1000, 10k, 1m, half or all (of the current balance). Staff changes ignore the capacity and the daily limits. They show in the island's history as Staff change, with your name.

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

FileOpens withIts own placeholders
bank.yml/is bank{balance} {capacity} {room} {percent} {bar} {wallet} {small} {medium} {large} {interest} {next-interest} {daily-limit}
bank-log.yml/is bank log{filter} {count}, and per line {kind} {who} {amount} {balance} {when} {note}
bank-members.yml/is bank membersPer player {rank} {name} {role} {deposited} {withdrawn} {net}
bank-top.yml/is bank top{my-rank} {my-balance}, and per island {rank} {owner} {name} {balance}
bank-settings.yml/is bank settingsPer role {role} {limit} {source}

The buttons in bank.yml use functions only the bank knows: bank-deposit-small, -medium, -large, -all, -custom, the same for bank-withdraw-, and open-bank-settings. Keep them as they are.

Add a bank button to a menuLink to this section

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

FunctionOpens
open-bankThe bank
open-bank-logThe history
open-bank-membersWho Gave What
open-bank-topRichest Islands

For example, in a menu file:

YAML
  bank:
    slot: 22
    item: GOLD_BLOCK
    name: "&#7DD3FCIsland Bank"
    lore:
      - "&8▪ &7Balance: &f{bank-balance}"
    actions:
      - "[function] open-bank"

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

MessagesLink to this section

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

For developersLink to this section

Other plugins can read and change island banks through the Skyblock API, and listen to every bank change with IslandBankTransactionEvent. See Events.

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