Class WRent
java.lang.Object
com.olziedev.playerwarps.api.warp.WRent
Represents a warp rent that can provide basic renting data for the warp.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
getPrice()
abstract long
abstract long
abstract void
setWarpLastRent
(Long date) Modifies the last rented date of this 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
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.
-