Skip to content

Commit f1300da

Browse files
authored
chestshop bandaid fix
1 parent cddf37b commit f1300da

File tree

1 file changed

+5
-1
lines changed
  • modules/src/main/java/parallelmc/parallelutils/modules/chestshops

1 file changed

+5
-1
lines changed

modules/src/main/java/parallelmc/parallelutils/modules/chestshops/ChestShops.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,18 @@ public void onDisable() {
172172
conn.commit();
173173
statement.close();
174174

175+
// this logic below needs to be redone at some point
176+
// ideally shifting to a full database driven setup
177+
175178
// remove old chestshop entries that no longer exist on the server
176179
// this helps fix conflicts where someone creates a shop where one recently existed (small edge case but good to patch)
177180
// since existing chestshops have their timestamp updated automatically above, they shouldn't be touched by this
178-
PreparedStatement cleanup = conn.prepareStatement("DELETE FROM ChestShops WHERE Timestamp < DATE_SUB(NOW(), INTERVAL 15 MINUTE)");
181+
/* PreparedStatement cleanup = conn.prepareStatement("DELETE FROM ChestShops WHERE Timestamp < DATE_SUB(NOW(), INTERVAL 15 MINUTE)");
179182
cleanup.setQueryTimeout(30);
180183
cleanup.execute();
181184
conn.commit();
182185
cleanup.close();
186+
*/
183187

184188
} catch (SQLException e) {
185189
e.printStackTrace();

0 commit comments

Comments
 (0)