Class ExpireManager
java.lang.Object
com.plotsquared.core.plot.expiration.ExpireManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTask(ExpiryTask task) booleanvoidconfirmExpiry(PlotPlayer<?> pp) voiddeleteWithMessage(Plot plot, Runnable whenDone) longgetAccountAge(UUID uuid) Gets the account last joined - first joined (or Long.MAX_VALUE)longlongGet the age (last play time) of the passed playerlonggetTimestamp(UUID uuid) voidhandleEntry(PlotPlayer<?> pp, Plot plot) voidhandleJoin(PlotPlayer<?> pp) isExpired(ArrayDeque<ExpiryTask> applicable, Plot plot) voidpassesComplexity(PlotAnalysis analysis, Collection<ExpiryTask> applicable, RunnableVal<Boolean> success, Runnable failure) booleanbooleanrunTask(RunnableVal3<Plot, Runnable, Boolean> expiredTask) voidvoidupdateExpired(Plot plot)
-
Constructor Details
-
ExpireManager
-
-
Method Details
-
addTask
-
handleJoin
-
handleEntry
-
getAccountAge
Gets the account last joined - first joined (or Long.MAX_VALUE)- Parameters:
uuid- player uuid- Returns:
- result
-
getTimestamp
-
updateExpired
-
confirmExpiry
-
cancelTask
-
runAutomatedTask
-
isExpired
-
getTasks
-
passesComplexity
public void passesComplexity(PlotAnalysis analysis, Collection<ExpiryTask> applicable, RunnableVal<Boolean> success, Runnable failure) -
runTask
-
storeDate
-
getPendingExpired
-
deleteWithMessage
-
getAge
Get the age (last play time) of the passed player- Parameters:
uuid- the uuid of the owner to check againstshouldDeleteUnknownOwner-trueif an unknown player should be counted as never online- Returns:
- the millis since the player was last online, or
Long.MAX_VALUEif player was never online - Since:
- 6.4.0
-
getAge
-