//warTimer.schedule(
// new ServerBroadCastTimerTask(plugin,
// String.format("War starts in %s", TimeMgmt.formatCountdownTime(t))),
// (delay-t)*1000);
int id = plugin.getServer().getScheduler().scheduleAsyncDelayedTask(getPlugin(),
new ServerBroadCastTimerTask(plugin, String.format("War starts in %s", TimeMgmt.formatCountdownTime(t))),
MinecraftTools.convertToTicks((delay-t)));
if (id == -1) {
TownyMessaging.sendErrorMsg("Could not schedule a countdown message for war event.");
end();
} else