From de9119d6598fc7bc5105621a1aeee77ec8a239ed Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 9 Sep 2012 11:39:50 +0200 Subject: [PATCH] Fix check name for history. --- .../nocheatplus/checks/DelayedActionsExecution.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fr/neatmonster/nocheatplus/checks/DelayedActionsExecution.java b/src/fr/neatmonster/nocheatplus/checks/DelayedActionsExecution.java index c7abad85..0c6f2aa2 100644 --- a/src/fr/neatmonster/nocheatplus/checks/DelayedActionsExecution.java +++ b/src/fr/neatmonster/nocheatplus/checks/DelayedActionsExecution.java @@ -28,11 +28,12 @@ public class DelayedActionsExecution { public boolean execute(){ try { - ViolationHistory.getHistory(violationData.player).log(getClass().getName(), violationData.addedVL); + ViolationHistory.getHistory(violationData.player).log(violationData.check.getClass().getName(), violationData.addedVL); // Add this failed check to the Metrics data. MetricsData.addFailed(violationData.check.type); + // TODO: the time is taken here, which makes sense for delay, but otherwise ? final long time = System.currentTimeMillis() / 1000L; boolean cancel = false; for (final Action action : actions)