I need a simple way to call a function every 60 minutes. How can I do this? I\'m making a MineCraft bukkit plugin, and this is what I have:
package com.webs.play
Create a thread that will run forever and wakes up every hour to execute your data.
Thread t = new Thread() { @Override public void run() { while(true) { try { Thread.sleep(1000*60*60); //your code here... } catch (InterruptedException ie) { } } } }; t.start();