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

    Constructors
    Constructor
    Description
    PlayerReceiveLevelPaymentEvent(org.bukkit.entity.Player player, double payment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    double
    Get the levelpayment of Player
    org.bukkit.entity.Player
    Get the Player who is receiving his levelpayment
    boolean
     
    void
    setCancelled(boolean cancelled)
     
    void
    setLevelPayment(double payment)
    Change the levelpayment

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable