diff --git a/Plan/src/main/java/com/djrapitops/plan/database/tables/TPSTable.java b/Plan/src/main/java/com/djrapitops/plan/database/tables/TPSTable.java index a5c81dfc9..341eaa9e4 100644 --- a/Plan/src/main/java/com/djrapitops/plan/database/tables/TPSTable.java +++ b/Plan/src/main/java/com/djrapitops/plan/database/tables/TPSTable.java @@ -132,12 +132,18 @@ public class TPSTable extends Table { * @throws SQLException */ public void clean() throws SQLException { + Optional allTimePeak = getAllTimePeak(); + int p = -1; + if (allTimePeak.isPresent()) { + p = allTimePeak.get().getPlayers(); + } PreparedStatement statement = null; try { statement = prepareStatement("DELETE FROM " + tableName + " WHERE (" + columnDate + "