mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-26 02:01:34 +01:00
Removed deprecated use of scheduleAsyncDelayedTask
This commit is contained in:
parent
0e3848874a
commit
f52004cb76
@ -155,7 +155,7 @@ public class VersionCommand extends MultiverseCommand {
|
|||||||
Logging.info(line);
|
Logging.info(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.plugin.getServer().getScheduler().scheduleAsyncDelayedTask(this.plugin, new Runnable() {
|
BukkitRunnable logPoster = new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (args.size() == 1) {
|
if (args.size() == 1) {
|
||||||
@ -177,7 +177,10 @@ public class VersionCommand extends MultiverseCommand {
|
|||||||
Logging.info("Version info dumped here: %s", pasteUrl);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user