From 6f86f04f3df5a783e6f6499cbfa896a769cbb878 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 3 Jan 2014 20:29:25 -0600 Subject: [PATCH] Log to the console which timer/scheduler we're using. --- src/main/java/com/graywolf336/jail/JailTimer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/JailTimer.java b/src/main/java/com/graywolf336/jail/JailTimer.java index 9dcf366..0e1d151 100644 --- a/src/main/java/com/graywolf336/jail/JailTimer.java +++ b/src/main/java/com/graywolf336/jail/JailTimer.java @@ -30,8 +30,10 @@ public class JailTimer { this.lastTime = System.currentTimeMillis(); if(pl.getConfig().getBoolean(Settings.USEBUKKITTIMER.getPath())) { + pl.getLogger().info("Using the Bukkit Scheduler."); pl.getServer().getScheduler().scheduleSyncRepeatingTask(pl, new TimeEvent(), 20, 20); }else { + pl.getLogger().info("Using the Java Timer."); timer = new Timer(1000, new ActionListener () { public void actionPerformed (ActionEvent event) { pl.getServer().getScheduler().scheduleSyncDelayedTask(pl, new TimeEvent());