mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-26 12:59:19 +01:00
new: say what song got removed
This commit is contained in:
parent
511ad4b8e6
commit
b6f06e729d
2 changed files with 5 additions and 3 deletions
|
|
@ -43,8 +43,10 @@ public class TrackManager extends AudioEventAdapter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeQueueItem(int index) {
|
public String removeQueueItem(int index) {
|
||||||
|
String title = trackQueue.get(index).getInfo().title;
|
||||||
trackQueue.remove(index);
|
trackQueue.remove(index);
|
||||||
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void pause() {
|
public void pause() {
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,8 @@ public class Remove implements Command {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
trackManager.removeQueueItem(parsedIndex - 1);
|
String title = trackManager.removeQueueItem(parsedIndex - 1);
|
||||||
messageChannel.sendMessage("Removed the song.").queue();
|
messageChannel.sendMessage("Removed " + title).queue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNumeric(String strNum) {
|
public static boolean isNumeric(String strNum) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue