This commit is contained in:
Coloryr committed 2024-04-17 22:15:12 +08:00
1 parent cb23143522
commit 8d4bccd711
85 files changed
+2944 -1540

No files matched your search

+6 -2
View File
@@ -2,9 +2,13 @@ package coloryr.allmusic.core.command;
import coloryr.allmusic.core.AllMusic;
public class CommandCode implements ICommand {
public class CommandCode extends ACommand {
@Override
public void ex(Object sender, String name, String[] args) {
AllMusic.getMusicApi().sendCode(sender);
if (args.length != 2) {
AllMusic.side.sendMessage(sender, AllMusic.getMessage().command.error);
return;
}
AllMusic.getMusicApi().sendCode(sender, args[1]);
}
}