public class Econ
extends java.lang.Object
Constructor and Description |
---|
Econ() |
Modifier and Type | Method and Description |
---|---|
static double |
calculateClaimCost(int ownedLand,
boolean takingFromAnotherFaction) |
static double |
calculateClaimRefund(int ownedLand) |
static double |
calculateTotalLandRefund(int ownedLand) |
static double |
calculateTotalLandValue(int ownedLand) |
static boolean |
canIControllYou(EconomyParticipator i,
EconomyParticipator you) |
static boolean |
deposit(java.lang.String account,
double amount) |
static double |
getBalance(java.lang.String account) |
static java.util.Set<FPlayer> |
getFplayers(EconomyParticipator ep) |
static java.lang.String |
getFriendlyBalance(FPlayer player) |
static java.lang.String |
getFriendlyBalance(java.util.UUID uuid) |
static boolean |
hasAccount(java.lang.String name) |
static boolean |
hasAtLeast(EconomyParticipator ep,
double delta,
java.lang.String toDoThis) |
static boolean |
isSetup() |
static boolean |
isUUID(java.lang.String uuid) |
static boolean |
modifyBalance(java.lang.String account,
double amount) |
static boolean |
modifyMoney(EconomyParticipator ep,
double delta,
java.lang.String toDoThis,
java.lang.String forDoingThis) |
static void |
modifyUniverseMoney(double delta) |
static java.lang.String |
moneyString(double amount) |
static void |
sendBalanceInfo(FPlayer to,
EconomyParticipator about) |
static void |
sendTransferInfo(EconomyParticipator invoker,
EconomyParticipator from,
EconomyParticipator to,
double amount) |
static boolean |
setBalance(java.lang.String account,
double amount) |
static void |
setup() |
static boolean |
shouldBeUsed() |
static boolean |
transferMoney(EconomyParticipator invoker,
EconomyParticipator from,
EconomyParticipator to,
double amount) |
static boolean |
transferMoney(EconomyParticipator invoker,
EconomyParticipator from,
EconomyParticipator to,
double amount,
boolean notify) |
static boolean |
withdraw(java.lang.String account,
double amount) |
public static void setup()
public static boolean shouldBeUsed()
public static boolean isSetup()
public static void modifyUniverseMoney(double delta)
public static void sendBalanceInfo(FPlayer to, EconomyParticipator about)
public static boolean canIControllYou(EconomyParticipator i, EconomyParticipator you)
public static boolean transferMoney(EconomyParticipator invoker, EconomyParticipator from, EconomyParticipator to, double amount)
public static boolean transferMoney(EconomyParticipator invoker, EconomyParticipator from, EconomyParticipator to, double amount, boolean notify)
public static java.util.Set<FPlayer> getFplayers(EconomyParticipator ep)
public static void sendTransferInfo(EconomyParticipator invoker, EconomyParticipator from, EconomyParticipator to, double amount)
public static boolean hasAtLeast(EconomyParticipator ep, double delta, java.lang.String toDoThis)
public static boolean modifyMoney(EconomyParticipator ep, double delta, java.lang.String toDoThis, java.lang.String forDoingThis)
public static java.lang.String moneyString(double amount)
public static double calculateClaimCost(int ownedLand, boolean takingFromAnotherFaction)
public static double calculateClaimRefund(int ownedLand)
public static double calculateTotalLandValue(int ownedLand)
public static double calculateTotalLandRefund(int ownedLand)
public static boolean hasAccount(java.lang.String name)
public static double getBalance(java.lang.String account)
public static java.lang.String getFriendlyBalance(java.util.UUID uuid)
public static java.lang.String getFriendlyBalance(FPlayer player)
public static boolean setBalance(java.lang.String account, double amount)
public static boolean modifyBalance(java.lang.String account, double amount)
public static boolean deposit(java.lang.String account, double amount)
public static boolean withdraw(java.lang.String account, double amount)
public static boolean isUUID(java.lang.String uuid)