mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fixed purge command
This commit is contained in:
parent
04e8c5a8c4
commit
441d4dde2e
@ -637,7 +637,7 @@ public class DBFunc {
|
|||||||
|
|
||||||
// Fetching a list of plot IDs for a world
|
// Fetching a list of plot IDs for a world
|
||||||
try {
|
try {
|
||||||
PreparedStatement stmt = connection.prepareStatement("SELECT `id`, FROM `plot` WHERE `world` = ?");
|
PreparedStatement stmt = connection.prepareStatement("SELECT `id` FROM `plot` WHERE `world` = ?");
|
||||||
stmt.setString(1, world);
|
stmt.setString(1, world);
|
||||||
ResultSet result = stmt.executeQuery();
|
ResultSet result = stmt.executeQuery();
|
||||||
while (result.next()) {
|
while (result.next()) {
|
||||||
@ -670,8 +670,12 @@ public class DBFunc {
|
|||||||
stmt.close();
|
stmt.close();
|
||||||
|
|
||||||
stmt = connection.prepareStatement("DELETE FROM `plot_settings` WHERE `plot_plot_id` = "+idstr+"");
|
stmt = connection.prepareStatement("DELETE FROM `plot_settings` WHERE `plot_plot_id` = "+idstr+"");
|
||||||
stmt.executeUpdate();
|
stmt.executeUpdate();
|
||||||
stmt.close();
|
stmt.close();
|
||||||
|
|
||||||
|
stmt = connection.prepareStatement("DELETE FROM `plot_trusted` WHERE `plot_plot_id` = "+idstr+"");
|
||||||
|
stmt.executeUpdate();
|
||||||
|
stmt.close();
|
||||||
|
|
||||||
stmt = connection.prepareStatement("DELETE FROM `plot` WHERE `world` = ?");
|
stmt = connection.prepareStatement("DELETE FROM `plot` WHERE `world` = ?");
|
||||||
stmt.setString(1, world);
|
stmt.setString(1, world);
|
||||||
|
Loading…
Reference in New Issue
Block a user