jda errors

This commit is contained in:
NK 2023-05-24 20:25:24 +01:00
parent 9dcb525cf1
commit 65b69f8049

View file

@ -66,7 +66,7 @@ public class CommandListener extends ListenerAdapter {
if (type.equals("claimer")) { if (type.equals("claimer")) {
if (!Lilase.relister.isOpen()) { if (!Lilase.relister.isOpen()) {
Lilase.claimer.toggle(); Lilase.claimer.toggle();
event.getHook().editOriginal("Claimer enabled").queue(); event.reply("Claimer enabled").queue();
} else { } else {
event.getHook().editOriginal("Relister is currently running, please stop it first").queue(); event.getHook().editOriginal("Relister is currently running, please stop it first").queue();
} }
@ -74,17 +74,17 @@ public class CommandListener extends ListenerAdapter {
if (type.equals("macro")) { if (type.equals("macro")) {
if (!Lilase.cofl.isOpen()) { if (!Lilase.cofl.isOpen()) {
Lilase.cofl.toggleAuction(); Lilase.cofl.toggleAuction();
event.getHook().editOriginal("Macro enabled").queue(); event.reply("Macro enabled").queue();
} else { } else {
event.getHook().editOriginal("Macro is currently running, please stop it first").queue(); event.reply("Macro is currently running, please stop it first").queue();
} }
} }
if (type.equals("relister")) { if (type.equals("relister")) {
if (!Lilase.claimer.isOpen()) { if (!Lilase.claimer.isOpen()) {
Lilase.relister.toggle(); Lilase.relister.toggle();
event.getHook().editOriginal("Relister enabled").queue(); event.reply("Relister enabled").queue();
} else { } else {
event.getHook().editOriginal("Claimer is currently running, please stop it first").queue(); event.reply("Claimer is currently running, please stop it first").queue();
} }
} }
} }