Fix repeated refreshes on lots of faction update triggers
This commit is contained in:
parent
0b1ed5714a
commit
576ecd8fce
@ -165,6 +165,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
|||||||
if(pending == null) {
|
if(pending == null) {
|
||||||
FactionsUpdate upd = new FactionsUpdate();
|
FactionsUpdate upd = new FactionsUpdate();
|
||||||
upd.runonce = true;
|
upd.runonce = true;
|
||||||
|
pending = upd;
|
||||||
getServer().getScheduler().scheduleSyncDelayedTask(this, upd, 20);
|
getServer().getScheduler().scheduleSyncDelayedTask(this, upd, 20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user