Removed deprecated use of scheduleAsyncDelayedTask

This commit is contained in:
Eric Stokes 2016-03-12 15:10:27 -07:00
parent 0e3848874a
commit f52004cb76
1 changed files with 5 additions and 2 deletions

View File

@ -155,7 +155,7 @@ public class VersionCommand extends MultiverseCommand {
Logging.info(line);
}
this.plugin.getServer().getScheduler().scheduleAsyncDelayedTask(this.plugin, new Runnable() {
BukkitRunnable logPoster = new BukkitRunnable() {
@Override
public void run() {
if (args.size() == 1) {
@ -177,7 +177,10 @@ public class VersionCommand extends MultiverseCommand {
Logging.info("Version info dumped here: %s", pasteUrl);
}
}
});
};
// Run the log posting operation asynchronously, since we don't know how long it will take.
logPoster.runTaskAsynchronously(this.plugin);
}
/**