File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
modules/src/main/java/parallelmc/parallelutils/modules/chestshops Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments