mirror of
https://github.com/Noratrieb/killua-bot.git
synced 2026-01-16 16:15:03 +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 {
|
try {
|
||||||
attachments.get(0).downloadToFile(
|
attachments.get(0).downloadToFile(
|
||||||
new File(EvalCommand.class.getProtectionDomain().getCodeSource()
|
new File(EvalCommand.class.getProtectionDomain().getCodeSource()
|
||||||
.getLocation().toURI()));
|
.getLocation().toURI())).thenRun(() -> {
|
||||||
reply("Downloaded jar file");
|
reply("Downloaded jar file");
|
||||||
|
});
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
reply("Error: " + e.getMessage());
|
reply("Error: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue