mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
ready to release
Former-commit-id: d7ba4c7d57fe4f469625b3eab820ffd3c1a7cfa7
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user