Class PlayerPayEvent
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.PlayerChangeBalanceEvent
us.teaminceptus.novaconomy.api.events.player.economy.PlayerPayEvent
- All Implemented Interfaces:
Cancellable
Called when a Player pays another 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
ConstructorsConstructorDescriptionPlayerPayEvent(Player target, Player payer, Economy econ, double paid, double previousBal, double newBal) Represents an Event when a Player pays another Player -
Method Summary
Modifier and TypeMethodDescription@NotNull PlayergetPayer()Get the person that is payingPlayerEvent.getPlayer().Methods inherited from class us.teaminceptus.novaconomy.api.events.player.economy.PlayerChangeBalanceEvent
getNewBalance, getPreviousBalance, isCancelled, isNatural, setCancelledMethods inherited from class us.teaminceptus.novaconomy.api.events.player.economy.PlayerEconomyEvent
getAmount, getEconomy, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerPayEvent
public PlayerPayEvent(Player target, Player payer, Economy econ, double paid, double previousBal, double newBal) Represents an Event when a Player pays another Player- Parameters:
target- Player being paidpayer- Player payingecon- Economy involvedpaid- Amount paidpreviousBal- Previous Balance before transactionnewBal- Balance After transaction (previousBal + paid = newBal is NOT being checked)
-
-
Method Details
-
getPayer
Get the person that is payingPlayerEvent.getPlayer().- Returns:
- Player that is paying
-