Package com.earth2me.essentials
Class Trade
java.lang.Object
com.earth2me.essentials.Trade
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTrade
(double money, IEssentials ess) Deprecated.Trade
(int exp, IEssentials ess) Trade
(String command, Trade fallback, IEssentials ess) Trade
(String command, IEssentials ess) Trade
(BigDecimal money, IEssentials ess) Trade
(ItemStack items, IEssentials ess) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
charge
(IUser user, CompletableFuture<Boolean> future) static void
closeLog()
getCommandCost
(IUser user) getMoney()
getType()
void
isAffordableFor
(IUser user) void
isAffordableFor
(IUser user, CompletableFuture<Boolean> future) static void
log
(String type, String subtype, String event, String sender, Trade charge, String receiver, Trade pay, Location loc, BigDecimal endBalance, IEssentials ess) boolean
pay
(IUser user, Trade.OverflowType type)
-
Constructor Details
-
Trade
-
Trade
-
Trade
Deprecated. -
Trade
-
Trade
-
Trade
-
-
Method Details
-
log
public static void log(String type, String subtype, String event, String sender, Trade charge, String receiver, Trade pay, Location loc, BigDecimal endBalance, IEssentials ess) -
closeLog
public static void closeLog() -
isAffordableFor
- Throws:
ChargeException
-
isAffordableFor
-
pay
- Throws:
MaxMoneyException
-
pay
- Throws:
MaxMoneyException
-
charge
- Throws:
ChargeException
-
charge
-
getMoney
-
getItemStack
-
getExperience
-
getType
-
getCommandCost
-