if (entry.getValue().remainingTime < warmupTime) {
entry.getValue().remainingTime++;
} else if (entry.getValue().remainingTime == warmupTime) {
// Reached the needed time, run a scheduler task to execute the command
// back on the main thread.
final CommandSender owner = state.getOwner();
if (owner != null) {
CommandBook.server().getScheduler().callSyncMethod(CommandBook.inst(), new Callable<Boolean>() {
@Override
public Boolean call() {
return CommandBook.server().dispatchCommand(owner, entry.getValue().fullCommand);