From 42a3ec056159ce2d8d5cf4c6535b6d8074c65b2e Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 20 Oct 2014 22:58:40 +1100 Subject: [PATCH] ... --- PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java | 2 +- .../src/com/intellectualcrafters/plot/database/DBFunc.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java index d41e87936..2b16b18ca 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java @@ -227,7 +227,7 @@ public class PlotMain extends JavaPlugin { * List of all plots * DO NOT USE EXCEPT FOR DATABASE PURPOSES */ - static HashMap> plots; + private static HashMap> plots; /** * All loaded plot worlds */ diff --git a/PlotSquared/src/com/intellectualcrafters/plot/database/DBFunc.java b/PlotSquared/src/com/intellectualcrafters/plot/database/DBFunc.java index 49e7f8d75..26fd33811 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/database/DBFunc.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/database/DBFunc.java @@ -648,7 +648,7 @@ public class DBFunc { stmt.executeUpdate(); stmt.close(); - stmt = connection.prepareStatement("DELETE FROM `plot` WHERE `world` = ?"); + stmt = connection.prepareStatement("DELETE FROM `plot` WHERE `plot_plot_id` = "+idstr+""); stmt.setString(1, world); stmt.executeUpdate(); stmt.close();