Class VaultBasedEconomyModifier

java.lang.Object
wtf.choco.veinminer.economy.VaultBasedEconomyModifier
All Implemented Interfaces:
EconomyModifier

public class VaultBasedEconomyModifier
extends Object
implements EconomyModifier
An implementation of EconomyModifier to make use of a Vault-supported economy plugin.
Author:
Parker Hawke - 2008Choco
  • Constructor Details

  • Method Details

    • shouldCharge

      public boolean shouldCharge​(org.bukkit.entity.Player player, AlgorithmConfig config)
      Description copied from interface: EconomyModifier
      Check whether the provided player should have money withdrawn from their account before vein mining.
      Specified by:
      shouldCharge in interface EconomyModifier
      Parameters:
      player - the player to check
      config - the relevant algorithm config (if necessary)
      Returns:
      true if money should be withdrawn, false otherwise
    • hasSufficientBalance

      public boolean hasSufficientBalance​(org.bukkit.entity.Player player, AlgorithmConfig config)
      Description copied from interface: EconomyModifier
      Check whether or not the provided player has a sufficient amount of money to be charged.
      Specified by:
      hasSufficientBalance in interface EconomyModifier
      Parameters:
      player - the player to check
      config - the relevant algorithm config (if necessary)
      Returns:
      true if the player has a sufficient amount of money, false otherwise
    • charge

      public void charge​(org.bukkit.entity.Player player, AlgorithmConfig config)
      Description copied from interface: EconomyModifier
      Charge the specified player.
      Specified by:
      charge in interface EconomyModifier
      Parameters:
      player - the player to check
      config - the relevant algorithm config (if necessary)
    • hasEconomyPlugin

      public boolean hasEconomyPlugin()
      Check whether or not an economy implementation was found.
      Returns:
      true if economy is enabled, false otherwise