Class PlayerEconomyEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
us.teaminceptus.novaconomy.api.events.player.economy.PlayerEconomyEvent
- Direct Known Subclasses:
PlayerChangeBalanceEvent,PlayerDepositEvent,PlayerPurchaseProductEvent,PlayerWithdrawEvent
An Economy-Related Event involving a Player
-
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
ConstructorsConstructorDescriptionPlayerEconomyEvent(Player who, double amount, @Nullable Economy econ) Represents an Economy-Related Event -
Method Summary
Modifier and TypeMethodDescriptiondoubleFetch the amount involved in this event@Nullable EconomyFetch the Economy involved in this eventstatic @NotNull HandlerListFetches the Event Handlers.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerEconomyEvent
Represents an Economy-Related Event- Parameters:
who- Player involvedamount- Amount involvedecon- Economy involved
-
-
Method Details
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
Fetches the Event Handlers.- Returns:
- Event Handlers
- See Also:
-
getAmount
public double getAmount()Fetch the amount involved in this event- Returns:
- amount used
-
getEconomy
Fetch the Economy involved in this event- Returns:
Economyinvolved
-