mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-26 22:02:57 +00:00
fix: api错误将一直占用队列
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user