Skip to content

Commit

Permalink
amazing
Browse files Browse the repository at this point in the history
  • Loading branch information
Steanky committed Jan 18, 2024
1 parent 82e9acf commit 8282b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/main/java/org/phantazm/server/PhantazmServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ private static void syncDb(DatabaseAccessContext databaseAccessContext) {
Path playerStats = Path.of("./phantazm_player_stats.json");

if (!Files.exists(bestTime) || !Files.exists(mapStats) || !Files.exists(playerStats)) {
System.out.println("Missing file, database transfer not active");
return;
}

Expand Down Expand Up @@ -412,7 +413,10 @@ private static void syncDb(DatabaseAccessContext databaseAccessContext) {
generalDatabase.updateJoin(uuid, firstJoin, lastJoin).join();
}
}
} catch (IOException ignored) {

System.out.println("Database transfer completed successfully");
} catch (IOException e) {
System.out.println("Error during database transfer: " + e);
}
}

Expand Down

0 comments on commit 8282b7f

Please sign in to comment.