Fix repeated refreshes on lots of faction update triggers
This commit is contained in:
		@@ -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);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user