diff --git a/src/main/java/com/jaoafa/mymaid4/lib/MyMaidCommand.java b/src/main/java/com/jaoafa/mymaid4/lib/MyMaidCommand.java index 7b5af31ea..3e617442d 100644 --- a/src/main/java/com/jaoafa/mymaid4/lib/MyMaidCommand.java +++ b/src/main/java/com/jaoafa/mymaid4/lib/MyMaidCommand.java @@ -64,9 +64,13 @@ public String getDescription() { } } - public record Cmd(Command... commands) { + @SuppressWarnings("ClassCanBeRecord") + public static class Cmd { + private final Command[] commands; + @SafeVarargs - public Cmd { + public Cmd(Command... commands) { + this.commands = commands; } /**