Class ExpireManager
java.lang.Object
com.plotsquared.core.plot.expiration.ExpireManager
-
Field Summary
-
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
long
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)
-
Field Details
-
IMP
-
-
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
public boolean cancelTask() -
runAutomatedTask
public boolean runAutomatedTask() -
isExpired
-
getTasks
-
passesComplexity
public void passesComplexity(PlotAnalysis analysis, Collection<ExpiryTask> applicable, RunnableVal<Boolean> success, Runnable failure) -
runTask
-
storeDate
-
getPendingExpired
-
deleteWithMessage
-
getAge
-
getAge
-