Interface TransactionManager
public interface TransactionManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidclaimMoney(org.bukkit.entity.Player player) Allows you to retrieve your stored moneylongcountUnRead(org.bukkit.OfflinePlayer offlinePlayer) Permet d'obtenir le nombre de transaction non lulonggetMoneyTransactions(org.bukkit.OfflinePlayer player) Allows to retrieve the list of transactions where the player has to retrieve the money.getMoneyTransactions(org.bukkit.OfflinePlayer offlinePlayer, String economy) Get transactions buy player and economygetTransactions(org.bukkit.OfflinePlayer player, HistoryType type) Allows you to retrieve a list of transactionsbooleanneedMoney(org.bukkit.OfflinePlayer offlinePlayer) Gives the number of transactions where the player has to get the money back.voidpurge(org.bukkit.command.CommandSender sender, long days) Purge transactionsstoreTransaction(AuctionItem auctionItem, Consumer<Transaction> consumer, long price) Allows to add a transaction and stcokervoidupdateUnRead(org.bukkit.OfflinePlayer player) Allows to read unread transactions
-
Method Details
-
storeTransaction
Allows to add a transaction and stcoker- Parameters:
auctionItem-
-
getTransactions
Allows you to retrieve a list of transactions- Parameters:
player-type-- Returns:
Listof transaction
-
getMoneyTransactions
Allows to retrieve the list of transactions where the player has to retrieve the money.- Parameters:
player-- Returns:
Listof transaction
-
needMoney
boolean needMoney(org.bukkit.OfflinePlayer offlinePlayer) Gives the number of transactions where the player has to get the money back.- Parameters:
offlinePlayer-- Returns:
- amount of transaction who need to get money
-
countUnRead
long countUnRead(org.bukkit.OfflinePlayer offlinePlayer) Permet d'obtenir le nombre de transaction non lu- Parameters:
offlinePlayer-- Returns:
- amount of transaction who is not read
-
updateUnRead
void updateUnRead(org.bukkit.OfflinePlayer player) Allows to read unread transactions- Parameters:
player-
-
claimMoney
void claimMoney(org.bukkit.entity.Player player) Allows you to retrieve your stored money- Parameters:
player-
-
getMonais
- Parameters:
player-economy-- Returns:
-
getMoneyTransactions
Get transactions buy player and economy- Parameters:
offlinePlayer-economy-- Returns:
-
purge
void purge(org.bukkit.command.CommandSender sender, long days) Purge transactions- Parameters:
sender-days-
-