Interface TransactionManager


public interface TransactionManager
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    claimMoney(org.bukkit.entity.Player player)
    Allows you to retrieve your stored money
    long
    countUnRead(org.bukkit.OfflinePlayer offlinePlayer)
    Permet d'obtenir le nombre de transaction non lu
    long
    getMonais(org.bukkit.entity.Player player, String economy)
     
    getMoneyTransactions(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 economy
    getTransactions(org.bukkit.OfflinePlayer player, HistoryType type)
    Allows you to retrieve a list of transactions
    boolean
    needMoney(org.bukkit.OfflinePlayer offlinePlayer)
    Gives the number of transactions where the player has to get the money back.
    void
    purge(org.bukkit.command.CommandSender sender, long days)
    Purge transactions
    storeTransaction(AuctionItem auctionItem, Consumer<Transaction> consumer, long price)
    Allows to add a transaction and stcoker
    void
    updateUnRead(org.bukkit.OfflinePlayer player)
    Allows to read unread transactions
  • Method Details

    • storeTransaction

      Transaction storeTransaction(AuctionItem auctionItem, Consumer<Transaction> consumer, long price)
      Allows to add a transaction and stcoker
      Parameters:
      auctionItem -
    • getTransactions

      List<Transaction> getTransactions(org.bukkit.OfflinePlayer player, HistoryType type)
      Allows you to retrieve a list of transactions
      Parameters:
      player -
      type -
      Returns:
      List of transaction
    • getMoneyTransactions

      List<Transaction> getMoneyTransactions(org.bukkit.OfflinePlayer player)
      Allows to retrieve the list of transactions where the player has to retrieve the money.
      Parameters:
      player -
      Returns:
      List of 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

      long getMonais(org.bukkit.entity.Player player, String economy)
      Parameters:
      player -
      economy -
      Returns:
    • getMoneyTransactions

      List<Transaction> getMoneyTransactions(org.bukkit.OfflinePlayer offlinePlayer, String economy)
      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 -