Fix repeated refreshes on lots of faction update triggers

This commit is contained in:
Mike Primm 2014-01-03 18:18:20 -06:00
parent 0b1ed5714a
commit 576ecd8fce

View File

@ -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);
} }
} }