mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2026-01-24 18:05:06 +01:00
fix: trial synchronising SQLManager#sendBatch (#4809)
This commit is contained in:
@@ -389,7 +389,7 @@ public class SQLManager implements AbstractDB {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean sendBatch() {
|
||||
public synchronized boolean sendBatch() {
|
||||
try {
|
||||
if (!getGlobalTasks().isEmpty()) {
|
||||
if (this.connection.getAutoCommit()) {
|
||||
|
||||
@@ -391,8 +391,7 @@ public abstract class PlotPlayer<P> implements CommandCaller, OfflinePlotPlayer,
|
||||
int count = 0;
|
||||
for (PlotArea area : this.plotAreaManager.getPlotAreasSet(world)) {
|
||||
if (!Settings.Done.COUNTS_TOWARDS_LIMIT) {
|
||||
count +=
|
||||
area.getPlotsAbs(uuid).stream().filter(plot -> !DoneFlag.isDone(plot)).count();
|
||||
count += area.getPlotsAbs(uuid).stream().filter(plot -> !DoneFlag.isDone(plot)).count();
|
||||
} else {
|
||||
count += area.getPlotsAbs(uuid).size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user