diff --git a/LavalinkServer/src/main/java/lavalink/server/io/WebSocketHandler.kt b/LavalinkServer/src/main/java/lavalink/server/io/WebSocketHandler.kt index e79db30ca..f2de613de 100644 --- a/LavalinkServer/src/main/java/lavalink/server/io/WebSocketHandler.kt +++ b/LavalinkServer/src/main/java/lavalink/server/io/WebSocketHandler.kt @@ -127,6 +127,9 @@ class WebSocketHandler( private fun seek(json: JSONObject) { val player = context.getPlayer(json.getLong("guildId")) + if (!player.isPlaying) { + log.warn("Can't seek when player is not playing anything") + } player.seekTo(json.getLong("position")) SocketServer.sendPlayerUpdate(context, player) }