mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-03 22:26:12 +00:00
Fix: ArrayIndexOutOfBoundsException in BotCommand (#420)
This commit is contained in:
@@ -94,8 +94,8 @@ public class BotCommand extends Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args[0].equals("remove") && args.length >= 3) {
|
if (args[0].equals("remove") && args.length >= 4) {
|
||||||
if (!Objects.equals(args[3], "cancel")) {
|
if (!Objects.equals(args[2], "cancel")) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 4 -> list.add("[minute]");
|
case 4 -> list.add("[minute]");
|
||||||
case 5 -> list.add("[second]");
|
case 5 -> list.add("[second]");
|
||||||
|
|||||||
Reference in New Issue
Block a user