mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-25 21:49:17 +02: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);
|
||||
return title;
|
||||
}
|
||||
|
||||
public void pause() {
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ public class Remove implements Command {
|
|||
return;
|
||||
}
|
||||
|
||||
trackManager.removeQueueItem(parsedIndex - 1);
|
||||
messageChannel.sendMessage("Removed the song.").queue();
|
||||
String title = trackManager.removeQueueItem(parsedIndex - 1);
|
||||
messageChannel.sendMessage("Removed " + title).queue();
|
||||
}
|
||||
|
||||
public static boolean isNumeric(String strNum) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue