fix: api错误将一直占用队列

This commit is contained in:
hutuyee committed 2026-06-20 22:35:37 +08:00
1 parent ce354cb35e
commit 4117430357
1 file changed
+8 -1
@@ -104,12 +104,19 @@ public class CommandEX {
return;
}
String apiname == args[0];
if (!AllMusic.MUSIC_APIS.containsKey(apiName)) {
AllMusic.side.sendMessage(sender, "不存在的音乐源:" + apiName);
return;
}
PlayerAddMusicObj obj = new PlayerAddMusicObj();
obj.sender = sender;
obj.name = name;
obj.args = args;
obj.isDefault = isDefault;
obj.api = args[0];
obj.api = apiname;
if (AllMusic.side.onMusicAdd(sender, obj)) {
AllMusic.side.sendMessage(sender, AllMusic.getMessage().addMusic.cancel);