Class ExpireManager
java.lang.Object
com.plotsquared.core.plot.expiration.ExpireManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTask
(ExpiryTask task) boolean
void
confirmExpiry
(PlotPlayer<?> pp) void
deleteWithMessage
(Plot plot, Runnable whenDone) long
getAccountAge
(UUID uuid) Gets the account last joined - first joined (or Long.MAX_VALUE)long
long
Get the age (last play time) of the passed playerlong
getTimestamp
(UUID uuid) void
handleEntry
(PlotPlayer<?> pp, Plot plot) void
handleJoin
(PlotPlayer<?> pp) isExpired
(ArrayDeque<ExpiryTask> applicable, Plot plot) void
passesComplexity
(PlotAnalysis analysis, Collection<ExpiryTask> applicable, RunnableVal<Boolean> success, Runnable failure) boolean
boolean
runTask
(RunnableVal3<Plot, Runnable, Boolean> expiredTask) void
void
updateExpired
(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
-true
if an unknown player should be counted as never online- Returns:
- the millis since the player was last online, or
Long.MAX_VALUE
if player was never online - Since:
- 6.4.0
-
getAge
-