mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 13:33:11 +00:00
Fixed purge command
This commit is contained in:
parent
9775ad3dd2
commit
e1dea5a450
3 changed files with 10 additions and 7 deletions
|
@ -783,14 +783,14 @@ public class SQLManager implements AbstractDB {
|
|||
if (ids.size() > 0) {
|
||||
try {
|
||||
|
||||
String prefix = "";
|
||||
String p = "";
|
||||
final StringBuilder idstr = new StringBuilder("");
|
||||
|
||||
for (final Integer id : ids) {
|
||||
idstr.append(prefix + id);
|
||||
prefix = " OR `plot_plot_id` = ";
|
||||
idstr.append(p + id);
|
||||
p = " OR `plot_plot_id` = ";
|
||||
}
|
||||
|
||||
|
||||
PreparedStatement stmt = SQLManager.this.connection.prepareStatement("DELETE FROM `" + prefix + "plot_helpers` WHERE `plot_plot_id` = " + idstr + "");
|
||||
stmt.executeUpdate();
|
||||
stmt.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue