Purge old shop before creation

Former-commit-id: 1bfcdc8e32caec92c77f5170249cfa725a58767b [formerly de367796aa3ff40fa500b97c2a21f18c2d4fcc3f]
Former-commit-id: 86f79ca03bf4f938eaed750a557d87f2305a2a08
This commit is contained in:
Ghost_chu committed 2019-08-24 18:36:47 +08:00
1 parent a898645213
commit 7d611c137d
1 file changed
+1
@@ -101,6 +101,7 @@ public class DatabaseHelper {
public void createShop(@NotNull Database db, @NotNull String owner, double price, @NotNull ItemStack item, int unlimited, int shopType, @NotNull String world, int x, int y, int z)
throws SQLException {
removeShop(db,x,y,z,world); //First purge old exist shop before create new shop.
String sqlString = "INSERT INTO " + QuickShop.instance
.getDbPrefix() + "shops (owner, price, itemConfig, x, y, z, world, unlimited, type) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)";
//QuickShop.instance.getDB().execute(q, owner, price, Util.serialize(item), x, y, z, world, unlimited, shopType);