public interface Bank
| Modifier and Type | Method and Description |
|---|---|
void |
addAccount(org.bukkit.OfflinePlayer player)
Add an Account for the Player in this Bank (despite of the Account Limit).
|
void |
addChest(org.bukkit.block.Chest chest)
Add a Chest to Bank.
|
void |
closeAllTranactions()
Close All opened Transactions
|
void |
closeTransaction(Transaction transac)
Close an opened Transaction
|
void |
delete(boolean keepSave)
Delete the Bank and keep the files if you ask it.
|
BankAccount |
getAccount(org.bukkit.OfflinePlayer player) |
BankAccount[] |
getAccounts() |
org.bukkit.OfflinePlayer |
getAlias(org.bukkit.entity.Player player) |
org.bukkit.block.Chest[] |
getChests() |
java.lang.String |
getName() |
BankSettings |
getProperties() |
Transaction |
getTransaction(org.bukkit.block.Chest chest) |
Transaction |
getTransaction(org.bukkit.entity.Player player) |
org.bukkit.World |
getWorld() |
boolean |
isConnected(org.bukkit.block.Chest chest) |
boolean |
isFrontageBank() |
boolean |
isFull() |
Transaction |
openChestTransaction(org.bukkit.block.Chest chest,
org.bukkit.entity.Player player,
BankAccount account)
Open a new Chest Transaction.
|
Transaction |
openVirtualTransaction(org.bukkit.entity.Player seer,
BankAccount account,
java.lang.String reason)
Open a new Virtual Transaction
|
void |
removeAccount(org.bukkit.OfflinePlayer player)
Remove the Account of the Player in this Bank.
|
void |
removeChest(org.bukkit.block.Chest chest)
Remove a Chest from the Bank.
|
void |
save()
Save the Chests adn Accounts of the Bank.
|
void |
setAlias(org.bukkit.entity.Player player,
org.bukkit.OfflinePlayer alias)
Change the Alias of the Player to open Chests as someone else.
|
java.lang.String getName()
org.bukkit.block.Chest[] getChests()
addChest(Chest),
removeChest(Chest)boolean isConnected(org.bukkit.block.Chest chest)
chest - the Chest you want to check.void addChest(org.bukkit.block.Chest chest)
chest - the Chest to Connect to the Bank.getChests(),
removeChest(Chest)void removeChest(org.bukkit.block.Chest chest)
chest - he Chest to disconnect from the Bank.getChests(),
addChest(Chest)BankAccount[] getAccounts()
getAccount(OfflinePlayer),
addAccount(OfflinePlayer),
removeAccount(OfflinePlayer)BankAccount getAccount(org.bukkit.OfflinePlayer player)
player - the Player of whom you want to get the Account.addAccount(OfflinePlayer),
removeAccount(OfflinePlayer)void addAccount(org.bukkit.OfflinePlayer player)
player - the Player that want an Account.getAccounts(),
getAccount(OfflinePlayer),
removeAccount(OfflinePlayer),
isFull()void removeAccount(org.bukkit.OfflinePlayer player)
player - the Player that doesn't want an Account.getAccounts(),
getAccount(OfflinePlayer),
addAccount(OfflinePlayer)boolean isFull()
org.bukkit.OfflinePlayer getAlias(org.bukkit.entity.Player player)
player - the Player you want to know the Alias.setAlias(Player, OfflinePlayer)void setAlias(org.bukkit.entity.Player player,
org.bukkit.OfflinePlayer alias)
player - the Player to change the Alias.alias - the new Alias of the Player, null if no Alias.getAlias(Player)Transaction openChestTransaction(org.bukkit.block.Chest chest, org.bukkit.entity.Player player, BankAccount account)
chest - the Chest of the Transaction.player - the Player that see the contents.account - the Account that is opened.openVirtualTransaction(Player, BankAccount, String),
closeTransaction(Transaction)Transaction openVirtualTransaction(org.bukkit.entity.Player seer, BankAccount account, java.lang.String reason)
seer - the Player that see the contents.account - the Account that is opened.reason - the Reason of the TransactionopenChestTransaction(Chest, Player, BankAccount),
closeTransaction(Transaction)void closeTransaction(Transaction transac)
transac - the Transaction to close.openChestTransaction(Chest, Player, BankAccount),
openVirtualTransaction(Player, BankAccount, String)void closeAllTranactions()
Transaction getTransaction(org.bukkit.block.Chest chest)
chest - the Chest opened in a TransactionopenChestTransaction(Chest, Player, BankAccount),
closeTransaction(Transaction),
getTransaction(Player)Transaction getTransaction(org.bukkit.entity.Player player)
player - the Player in the TransactionopenChestTransaction(Chest, Player, BankAccount),
openVirtualTransaction(Player, BankAccount, String),
closeTransaction(Transaction),
getTransaction(Chest)BankSettings getProperties()
org.bukkit.World getWorld()
void save()
void delete(boolean keepSave)
keepSave - true if you want to keep the files of the Bank, else false.boolean isFrontageBank()