mirror of
https://github.com/Noratrieb/killua-bot.git
synced 2026-01-14 15:15:01 +01:00
fixed jar async callback
This commit is contained in:
parent
12cb753083
commit
80d2e253a9
1 changed files with 3 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue