Package org.sgrewritten.stargate.economy
Interface EconomyAPI
- All Known Implementing Classes:
 EconomyManager,VaultEconomyManager
public interface EconomyAPI
An API describing the necessary basic instructions necessary for economy
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanchargePlayer(org.bukkit.OfflinePlayer offlinePlayer, double amount) Charges a player if possiblebooleandepositPlayer(org.bukkit.OfflinePlayer player, double amount) Deposits money in a player's account if possiblebooleanhas(org.bukkit.OfflinePlayer target, double amount) Check if player has enough money 
- 
Method Details
- 
has
boolean has(org.bukkit.OfflinePlayer target, double amount) Check if player has enough money- Parameters:
 target-The player to check
amount-The amount required
- Returns:
 True if the player has the required amount
 - 
chargePlayer
boolean chargePlayer(org.bukkit.OfflinePlayer offlinePlayer, double amount) Charges a player if possible- Parameters:
 offlinePlayer-The player to charge
amount-The amount the player should be charged
- Returns:
 True if the payment was fulfilled
 - 
depositPlayer
boolean depositPlayer(org.bukkit.OfflinePlayer player, double amount) Deposits money in a player's account if possible- Parameters:
 player-The player receiving the money
amount-The amount to receive
- Returns:
 True if the payment was fulfilled
 
 -