I'm new to java, and I want to make a clock that counts down. I don't need to know how to print in on screen or anything, I just need to have a clock that can run. My problem is that I don't know how to time things. If anyone could help me, or show me a video, I would greatly appreciate it.
Code:java int count = 10; Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { @Override public void run() { count--; if (count >= 0) { System.out.println(count + " Seconds left."); } }}, 20L, 20L);