Q:

Waiting two minutes to call a method

I'm working on a Minecraft Bukkit plugin, I know how to handle events and everything, but I'm not sure how to do this. I haven't actually written the code yet so here's a basic example of what I want to do:
public void playerDead() {  
    runCommand(commandHere)  
    //Wait 2 minutes.  
    runCommand(otherCommandHere 
}  

I just need the part to wait two minutes. Everything else is covered.
EDIT2: Seems I need to reset the delay to the beginning if someone else dies while it's going. Any suggestions?

A:

You should use the BukkitScheduler provided by Bukkit.
You have to save the BukkitTask object returned by the Scheduler.runTaskLater(...) method to use it later.
Every time playerDead() is called, you can reset the delay by cancelling and restarting the task.
BukkitTask task;

public void playerDead() {
    // Command here
    if (task != null) {
        task.cancel();
    }
    task = getServer().getScheduler().runTaskLater(Plugin, new Task(), 2400L);
}

public class Task extends BukkitRunnable {
    @Override
    public void run() {
        // Other command here
        task = null;
    }
}

