You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned above, when the track finishes it doesn't automatically skip to the next track.
After a bit of debugging, I found out that it doesn't seem like my current code fires the onTrackEnd event at all.
public void nextTrack() {
this.player.startTrack(queue.poll(), false);
currentSong();
System.out.println("skipped");
}
@Override
public void onTrackEnd(AudioPlayer player, AudioTrack track, AudioTrackEndReason endReason) {
System.out.println("does it work?");
if (endReason.mayStartNext) {
nextTrack();
currentSong();
}
}
I've searched for any possible solution but so far none of the solutions worked for me, can someone help? My repository of the bot, the code is in MusicManager.
The text was updated successfully, but these errors were encountered:
As mentioned above, when the track finishes it doesn't automatically skip to the next track.
After a bit of debugging, I found out that it doesn't seem like my current code fires the onTrackEnd event at all.
I've searched for any possible solution but so far none of the solutions worked for me, can someone help?
My repository of the bot, the code is in MusicManager.
The text was updated successfully, but these errors were encountered: