TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/BG-Software-LLC/SuperiorSkyblock2/llms.txt
Use this file to discover all available pages before exploring further.
IslandBank interface provides methods for managing an island’s bank account, including deposits, withdrawals, and transaction history.
Getting the Island Bank
Balance Management
getBalance()
Get the current balance in the bank.The current bank balance
setBalance(BigDecimal balance)
Set the balance in the bank. This does not create transaction records and is primarily used for loading data from the database.The balance to set
Deposits
depositMoney(SuperiorPlayer superiorPlayer, BigDecimal amount)
Deposit money into the bank from a player’s account.The player depositing the money
The amount to deposit
The transaction details
depositAdminMoney(CommandSender commandSender, BigDecimal amount)
Deposit money into the bank without taking it from any player’s account. This is an admin command that creates money.The command sender performing the deposit (typically console or admin)
The amount to deposit
The transaction details
canDepositMoney(BigDecimal amount)
Check if it’s possible to deposit money without exceeding the bank limit.The amount to check
True if the deposit is allowed
Withdrawals
withdrawMoney(SuperiorPlayer superiorPlayer, BigDecimal amount, List<String> commandsToExecute)
Withdraw money from the bank and give it to a player.The player withdrawing the money
The amount to withdraw
Optional commands to execute instead of using the default economy provider. Use for player name and for amount
The transaction details
withdrawAdminMoney(CommandSender commandSender, BigDecimal amount)
Withdraw money from the bank without giving it to any player. This is an admin command that removes money.The command sender performing the withdrawal (typically console or admin)
The amount to withdraw
The transaction details
Transaction History
getAllTransactions()
Get all transactions of the bank, sorted by creation time.List of all bank transactions
getTransactions(SuperiorPlayer superiorPlayer)
Get all transactions made by a specific player.The player whose transactions to retrieve
List of transactions by the player
getConsoleTransactions()
Get all transactions made by CONSOLE (admin commands).List of console transactions
loadTransaction(BankTransaction bankTransaction)
Load a transaction log. This is used internally to load transactions from the database.The transaction object to load
Bank Limits
Bank limits are managed at the Island level:Bank Interest
The island also manages bank interest:Example: Complete Bank Transaction
Related APIs
- Island - Main Island interface
- BankTransaction - Transaction details interface