Class PlayerDepositEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
us.teaminceptus.novaconomy.api.events.player.economy.PlayerEconomyEvent
us.teaminceptus.novaconomy.api.events.player.economy.PlayerDepositEvent
Called before a Player deposits into the Global Bank
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerDepositEvent(Player who, double amount, @Nullable Economy econ, long timestamp) Constructs a PlayerDepositEvent. -
Method Summary
Modifier and TypeMethodDescriptiondoubleFetches the amount deposited into the global bank.longFetches the system milliseconds timestamp of the depositvoidsetAmount(double amount) Sets the amount deposited into the global bank.Methods inherited from class us.teaminceptus.novaconomy.api.events.player.economy.PlayerEconomyEvent
getEconomy, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
setAmount
Sets the amount deposited into the global bank.- Parameters:
amount- Amount deposited- Throws:
IllegalArgumentException- if amount is negative
-
getAmount
public double getAmount()Fetches the amount deposited into the global bank.- Overrides:
getAmountin classPlayerEconomyEvent- Returns:
- Amount deposited
-
getTimestamp
public long getTimestamp()Fetches the system milliseconds timestamp of the deposit- Returns:
- System Milliseconds
-