mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
2 Fixes (PlotMe conversion, pve)
- Fixed PlotMe conversion -> MySQL for < 5K plots. - Fixed admin PVE bypass on unowned plots
This commit is contained in:
parent
5621570772
commit
5526d4a226
@ -8,7 +8,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<artifactId>PlotSquared</artifactId>
|
<artifactId>PlotSquared</artifactId>
|
||||||
<version>2.11.20</version>
|
<version>2.11.21</version>
|
||||||
<name>PlotSquared</name>
|
<name>PlotSquared</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<build>
|
<build>
|
||||||
|
@ -343,7 +343,7 @@ public class SQLManager implements AbstractDB {
|
|||||||
for (int j = 0; j <= amount; j++) {
|
for (int j = 0; j <= amount; j++) {
|
||||||
final List<T> subList = objList.subList(j * packet, Math.min(size, (j + 1) * packet));
|
final List<T> subList = objList.subList(j * packet, Math.min(size, (j + 1) * packet));
|
||||||
if (subList.size() == 0) {
|
if (subList.size() == 0) {
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
if (last == -1) {
|
if (last == -1) {
|
||||||
last = subList.size();
|
last = subList.size();
|
||||||
@ -364,7 +364,7 @@ public class SQLManager implements AbstractDB {
|
|||||||
last = subList.size();
|
last = subList.size();
|
||||||
preparedStmt.addBatch();
|
preparedStmt.addBatch();
|
||||||
}
|
}
|
||||||
PlotSquared.log("&aSuccess 1: " + count + " | " + objList.get(0).getClass().getCanonicalName());
|
PlotSquared.log("&aBatch 1: " + count + " | " + objList.get(0).getClass().getCanonicalName());
|
||||||
preparedStmt.executeBatch();
|
preparedStmt.executeBatch();
|
||||||
preparedStmt.clearParameters();
|
preparedStmt.clearParameters();
|
||||||
preparedStmt.close();
|
preparedStmt.close();
|
||||||
@ -406,7 +406,7 @@ public class SQLManager implements AbstractDB {
|
|||||||
last = subList.size();
|
last = subList.size();
|
||||||
preparedStmt.addBatch();
|
preparedStmt.addBatch();
|
||||||
}
|
}
|
||||||
PlotSquared.log("&aSuccess 2: " + count + " | " + objList.get(0).getClass().getCanonicalName());
|
PlotSquared.log("&aBatch 2: " + count + " | " + objList.get(0).getClass().getCanonicalName());
|
||||||
preparedStmt.executeBatch();
|
preparedStmt.executeBatch();
|
||||||
preparedStmt.clearParameters();
|
preparedStmt.clearParameters();
|
||||||
preparedStmt.close();
|
preparedStmt.close();
|
||||||
@ -430,7 +430,7 @@ public class SQLManager implements AbstractDB {
|
|||||||
PlotSquared.log("&c[ERROR] " + "Failed to save " + obj + "!");
|
PlotSquared.log("&c[ERROR] " + "Failed to save " + obj + "!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PlotSquared.log("&aSuccess 3");
|
PlotSquared.log("&aBatch 3");
|
||||||
preparedStmt.executeBatch();
|
preparedStmt.executeBatch();
|
||||||
preparedStmt.close();
|
preparedStmt.close();
|
||||||
}
|
}
|
||||||
|
@ -1465,6 +1465,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
} else if (aPlr && FlagManager.isPlotFlagTrue(plot, "pvp")) {
|
} else if (aPlr && FlagManager.isPlotFlagTrue(plot, "pvp")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user