mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Purge old shop before creation
Former-commit-id: 1bfcdc8e32caec92c77f5170249cfa725a58767b [formerly de367796aa3ff40fa500b97c2a21f18c2d4fcc3f] Former-commit-id: 86f79ca03bf4f938eaed750a557d87f2305a2a08
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user