From d770e4ccf9d13c4d0cb95236378cc7d6c57d1599 Mon Sep 17 00:00:00 2001 From: Robin Kupper Date: Thu, 16 Jun 2011 15:41:16 +0200 Subject: [PATCH] Fixed server freeze on timespecs like "1day" --- src/de/diddiz/LogBlock/LogBlock.java | 2 +- src/de/diddiz/util/Utils.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/diddiz/LogBlock/LogBlock.java b/src/de/diddiz/LogBlock/LogBlock.java index 5ed882c..d8dc450 100644 --- a/src/de/diddiz/LogBlock/LogBlock.java +++ b/src/de/diddiz/LogBlock/LogBlock.java @@ -147,7 +147,7 @@ public class LogBlock extends JavaPlugin timer.scheduleAtFixedRate(consumer, config.delayBetweenRuns * 1000, config.delayBetweenRuns * 1000); log.info("[LogBlock] Scheduled consumer with timer."); } - log.info("Logblock v" + getDescription().getVersion() + " enabled."); + log.info("Logblock v" + getDescription().getVersion() + " by DiddiZ enabled."); } @Override diff --git a/src/de/diddiz/util/Utils.java b/src/de/diddiz/util/Utils.java index dfbc957..9b8194b 100644 --- a/src/de/diddiz/util/Utils.java +++ b/src/de/diddiz/util/Utils.java @@ -94,9 +94,9 @@ public class Utils hours = Integer.parseInt(spec[0].substring(lastIndex, currIndex - 1)); else if (param.equals("m")) minutes = Integer.parseInt(spec[0].substring(lastIndex, currIndex - 1)); - lastIndex = currIndex; - currIndex++; } + lastIndex = currIndex; + currIndex++; } if (days == 0 && hours == 0 && minutes == 0) return -1;