2 Fixes (PlotMe conversion, pve)

- Fixed PlotMe conversion -> MySQL for < 5K plots.
- Fixed admin PVE bypass on unowned plots
This commit is contained in:
boy0001 2015-06-13 17:55:40 +10:00
parent 5621570772
commit 5526d4a226
3 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<artifactId>PlotSquared</artifactId>
<version>2.11.20</version>
<version>2.11.21</version>
<name>PlotSquared</name>
<packaging>jar</packaging>
<build>

View File

@ -343,7 +343,7 @@ public class SQLManager implements AbstractDB {
for (int j = 0; j <= amount; j++) {
final List<T> subList = objList.subList(j * packet, Math.min(size, (j + 1) * packet));
if (subList.size() == 0) {
return;
break;
}
if (last == -1) {
last = subList.size();
@ -364,7 +364,7 @@ public class SQLManager implements AbstractDB {
last = subList.size();
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.clearParameters();
preparedStmt.close();
@ -406,7 +406,7 @@ public class SQLManager implements AbstractDB {
last = subList.size();
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.clearParameters();
preparedStmt.close();
@ -430,7 +430,7 @@ public class SQLManager implements AbstractDB {
PlotSquared.log("&c[ERROR] " + "Failed to save " + obj + "!");
}
}
PlotSquared.log("&aSuccess 3");
PlotSquared.log("&aBatch 3");
preparedStmt.executeBatch();
preparedStmt.close();
}

View File

@ -1465,6 +1465,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
e.setCancelled(true);
return;
}
return;
} else if (aPlr && FlagManager.isPlotFlagTrue(plot, "pvp")) {
return;
}