ready to release

Former-commit-id: d7ba4c7d57fe4f469625b3eab820ffd3c1a7cfa7
This commit is contained in:
Ghost_chu committed 2018-09-22 21:08:58 +08:00
1 parent f59bd25039
commit 3f00452247
1 file changed
+8 -7
@@ -328,13 +328,14 @@ public class QuickShop extends JavaPlugin {
e.printStackTrace();
getLogger().severe("Error loading a shop! Coords: " + worldName + " (" + x + ", " + y + ", " + z + ")...");
if (errors < 3) {
getLogger().info("Deleting the shop...");
PreparedStatement delps = getDB().getConnection().prepareStatement("DELETE FROM shops WHERE x = ? AND y = ? and z = ? and world = ?");
delps.setInt(1, x);
delps.setInt(2, y);
delps.setInt(3, z);
delps.setString(4, worldName);
delps.execute();
getLogger().info("Skipping load this shop...");
return;
// PreparedStatement delps = getDB().getConnection().prepareStatement("DELETE FROM shops WHERE x = ? AND y = ? and z = ? and world = ?");
// delps.setInt(1, x);
// delps.setInt(2, y);
// delps.setInt(3, z);
// delps.setString(4, worldName);
// delps.execute();
} else {
getLogger().severe("Multiple errors in shops - Something seems to be wrong with your shops database! Please check it out immediately!");
e.printStackTrace();