mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Merge branch 'master' of https://github.com/IntellectualSites/PlotSquared
This commit is contained in:
commit
2f74368879
@ -220,6 +220,7 @@ public class ExpireManager {
|
|||||||
TaskManager.runTaskAsync(new Runnable() {
|
TaskManager.runTaskAsync(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
final Runnable task = this;
|
||||||
if (ExpireManager.this.running != 2) {
|
if (ExpireManager.this.running != 2) {
|
||||||
ExpireManager.this.running = 0;
|
ExpireManager.this.running = 0;
|
||||||
return;
|
return;
|
||||||
@ -242,13 +243,12 @@ public class ExpireManager {
|
|||||||
expiredTask.run(plot, new Runnable() {
|
expiredTask.run(plot, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
TaskManager.IMP.taskLaterAsync(this, 1);
|
TaskManager.IMP.taskLaterAsync(task, 1);
|
||||||
}
|
}
|
||||||
}, expiryTask.requiresConfirmation());
|
}, expiryTask.requiresConfirmation());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final Runnable task = this;
|
|
||||||
final RunnableVal<PlotAnalysis> handleAnalysis = new RunnableVal<PlotAnalysis>() {
|
final RunnableVal<PlotAnalysis> handleAnalysis = new RunnableVal<PlotAnalysis>() {
|
||||||
@Override
|
@Override
|
||||||
public void run(final PlotAnalysis changed) {
|
public void run(final PlotAnalysis changed) {
|
||||||
@ -308,7 +308,7 @@ public class ExpireManager {
|
|||||||
}
|
}
|
||||||
}, 86400000);
|
}, 86400000);
|
||||||
} else {
|
} else {
|
||||||
TaskManager.runTaskLaterAsync(this, 20 * 10);
|
TaskManager.runTaskLaterAsync(task, 20 * 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user