fixed jar async callback

This commit is contained in:
Nilstrieb 2021-02-16 15:57:34 +01:00
parent 12cb753083
commit 80d2e253a9

View file

@ -59,8 +59,9 @@ public class EvalCommand extends Command {
try {
attachments.get(0).downloadToFile(
new File(EvalCommand.class.getProtectionDomain().getCodeSource()
.getLocation().toURI()));
reply("Downloaded jar file");
.getLocation().toURI())).thenRun(() -> {
reply("Downloaded jar file");
});
} catch (URISyntaxException e) {
reply("Error: " + e.getMessage());
}