Class WRent

java.lang.Object
com.olziedev.playerwarps.api.warp.WRent

public abstract class WRent extends Object
Represents a warp rent that can provide basic renting data for the warp.
  • Constructor Details

    • WRent

      public WRent()
  • Method Details

    • getWarpNewRent

      public abstract long getWarpNewRent()
      Returns:
      The date when the warp needs to be rented in milliseconds.
    • getWarpLastRent

      public abstract long getWarpLastRent()
      Returns:
      The date when this warp was last rented in milliseconds or if they never rented it will return Warp.getWarpDate() instead.
    • setWarpLastRent

      public abstract void setWarpLastRent(Long date)
      Modifies the last rented date of this warp.
      Parameters:
      date - Date when rented in milliseconds.
    • getPrice

      public abstract double getPrice()
      Returns:
      The price that this warp would pay for the rent.