Add /dynmap purgequeue to purge tile update queue
This commit is contained in:
parent
079f9dc8cd
commit
c953097403
3 changed files with 22 additions and 2 deletions
|
|
@ -724,6 +724,18 @@ public class MapManager {
|
|||
}
|
||||
}
|
||||
|
||||
void purgeQueue(CommandSender sender) {
|
||||
if(tileQueue != null) {
|
||||
int cnt = 0;
|
||||
List<MapTile> popped = tileQueue.popAll();
|
||||
if(popped != null) {
|
||||
cnt = popped.size();
|
||||
popped.clear();
|
||||
}
|
||||
sender.sendMessage("Purged " + cnt + " tiles from queue");
|
||||
}
|
||||
}
|
||||
|
||||
public void activateWorld(World w) {
|
||||
ConfigurationNode worldConfiguration = plug_in.getWorldConfiguration(w);
|
||||
if (!worldConfiguration.getBoolean("enabled", false)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue