Log to the console which timer/scheduler we're using.

This commit is contained in:
graywolf336 2014-01-03 20:29:25 -06:00
parent 57eb5c71e3
commit 6f86f04f3d

View File

@ -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());