Class PlayerReceiveLevelPaymentEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerReceiveLevelPaymentEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PlayerReceiveLevelPaymentEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event thrown when Players their ingame time increases by 1 full hour and the player receives his level payment.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerReceiveLevelPaymentEvent
(org.bukkit.entity.Player player, double payment) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
double
Get the levelpayment of Playerorg.bukkit.entity.Player
Get the Player who is receiving his levelpaymentboolean
void
setCancelled
(boolean cancelled) void
setLevelPayment
(double payment) Change the levelpaymentMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerReceiveLevelPaymentEvent
public PlayerReceiveLevelPaymentEvent(org.bukkit.entity.Player player, double payment)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the Player who is receiving his levelpayment- Returns:
- Player who will be receiving his LevelPayment
-
getLevelPayment
public double getLevelPayment()Get the levelpayment of Player- Returns:
- money Levelpayment of
getPlayer()
-
setLevelPayment
public void setLevelPayment(double payment) Change the levelpayment- Parameters:
payment
- New levelpayment
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-