From dc5a34beeb8a4ec2edec51c2c7e9171fb7f01529 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Tue, 5 Oct 2021 23:36:03 -0600 Subject: [PATCH] Altered some debug messages. --- .../dansplugins/activitytracker/eventhandlers/QuitHandler.java | 2 +- src/main/java/dansplugins/activitytracker/objects/Session.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dansplugins/activitytracker/eventhandlers/QuitHandler.java b/src/main/java/dansplugins/activitytracker/eventhandlers/QuitHandler.java index dd468c8..aca9164 100644 --- a/src/main/java/dansplugins/activitytracker/eventhandlers/QuitHandler.java +++ b/src/main/java/dansplugins/activitytracker/eventhandlers/QuitHandler.java @@ -20,7 +20,7 @@ public void handle(PlayerQuitEvent event) { Logger.getInstance().log(player.getName() + " has quit the server. Ending their session."); currentSession.endSession(); double totalHoursSpent = record.getHoursSpent() + currentSession.getMinutesSpent() / 60; - Logger.getInstance().log("Total hours spent: " + totalHoursSpent); + Logger.getInstance().log("Total hours spent on the server: " + totalHoursSpent); record.setHoursSpent(totalHoursSpent); } diff --git a/src/main/java/dansplugins/activitytracker/objects/Session.java b/src/main/java/dansplugins/activitytracker/objects/Session.java index ea79d01..7b7bbb9 100644 --- a/src/main/java/dansplugins/activitytracker/objects/Session.java +++ b/src/main/java/dansplugins/activitytracker/objects/Session.java @@ -80,7 +80,7 @@ private double calculateMinutesSpent() { Duration duration = Duration.between(loginDate, logoutDate); double seconds = duration.getSeconds(); double minutes = seconds / 60; - Logger.getInstance().log("Minutes calculated: " + minutes); + Logger.getInstance().log("Minutes calculated for session: " + minutes); return minutes; }