We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b81344 commit b22c6d8Copy full SHA for b22c6d8
LavalinkServer/src/main/java/lavalink/server/player/Player.java
@@ -75,7 +75,11 @@ public String getGuildId() {
75
}
76
77
public void seekTo(long position) {
78
- player.getPlayingTrack().setPosition(position);
+ AudioTrack track = player.getPlayingTrack();
79
+
80
+ if (track == null) throw new RuntimeException("Can't seek when not playing anything");
81
82
+ track.setPosition(position);
83
84
85
public void setVolume(int volume) {
0 commit comments