Skip to content

Commit db242da

Browse files
authored
Merge pull request #766 from freyacodes/dev
v3.6.0 release
2 parents 8f307c8 + 47e5901 commit db242da

File tree

6 files changed

+74
-10
lines changed

6 files changed

+74
-10
lines changed

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,54 @@
33
Each release usually includes various fixes and improvements.
44
The most noteworthy of these, as well as any features and breaking changes, are listed here.
55

6+
## 3.6.0
7+
* new userId & clientName getters in the plugin-api. For more info see [here](https://github.com/freyacodes/Lavalink/pull/743).
8+
9+
Contributors:
10+
[@melike2d](https://github.com/melike2d)
11+
12+
## 3.5.1
13+
* update udpqueue.rs to `0.2.5` which fixes crashes when ipv6 is disabled
14+
* fix null socketContext in `IPlayer` for plugins
15+
* new `ping` field in player update. see https://github.com/freyacodes/Lavalink/pull/738 for more info
16+
17+
Contributors:
18+
[@TopiSenpai](https://github.com/TopiSenpai),
19+
[@Devoxin](https://github.com/Devoxin), and
20+
[@freyacodes](https://github.com/freyacodes)
21+
22+
## 3.5
23+
* New plugin system. For more info see [here](https://github.com/freyacodes/Lavalink/blob/master/PLUGINS.md).
24+
* Add support for HTTP proxying via httpConfig. For more info see [here](https://github.com/freyacodes/Lavalink/pull/595).
25+
* Update koe version to 2.0.0-rc1.
26+
- this fixes the WebSocketClosedEvent with code 1006 problem.
27+
* Fix error when enabling timescale and lowpass filters.
28+
* Fix player not playing after moving between voice chats or changing regions.
29+
* Fix guild ids sent as numbers in json.
30+
* Fix missing timescale natives.
31+
* Fix setting endMarkerHit to correctly set FINISHED as the reason.
32+
* Undeprecation of the `volume` property in the `play` OP.
33+
* Configurable track stuck threshold. For more info see [here](https://github.com/freyacodes/Lavalink/pull/676).
34+
* Add JDA-NAS support for more CPU Architectures. For more info see [here](https://github.com/freyacodes/Lavalink/pull/692). Big thanks goes to @MinnDevelopment here.
35+
* Update lavaplayer to [`1.3.98.4`](https://github.com/Walkyst/lavaplayer-fork/releases/tag/1.3.98.4) which fixes the latest yt cipher issues and age restricted tracks
36+
37+
Contributors:
38+
[@freyacodes](https://github.com/freyacodes),
39+
[@davidffa](https://github.com/davidffa),
40+
[@Walkyst](https://github.com/Walkyst),
41+
[@TopiSenpai](https://github.com/TopiSenpai),
42+
[@duncte123](https://github.com/duncte123),
43+
[@Kodehawa](https://github.com/Kodehawa),
44+
[@Devoxin](https://github.com/Devoxin),
45+
[@Muh9049](https://github.com/Muh9049),
46+
[@melike2d](https://github.com/melike2d),
47+
[@ToxicMushroom](https://github.com/ToxicMushroom),
48+
[@mooner1022](https://github.com/mooner1022),
49+
[@rohank05](https://github.com/rohank05),
50+
[@Fabricio20](https://github.com/Fabricio20),
51+
[@TheEssemm](https://github.com/TheEssemm), and
52+
[@jack1142](https://github.com/jack1142)
53+
654
## 3.4
755
* New filters system
856
* Deprecation of `TrackExceptionEvent.error`, replaced by `TrackExceptionEvent.exception`

LavalinkServer/src/main/java/lavalink/server/info/AppInfo.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class AppInfo {
2121
private final String version;
2222
private final String groupId;
2323
private final String artifactId;
24-
private final String buildNumber;
2524
private final long buildTime;
2625

2726
public AppInfo() {
@@ -35,7 +34,6 @@ public AppInfo() {
3534
this.version = prop.getProperty("version");
3635
this.groupId = prop.getProperty("groupId");
3736
this.artifactId = prop.getProperty("artifactId");
38-
this.buildNumber = prop.getProperty("buildNumber");
3937
long bTime = -1L;
4038
try {
4139
bTime = Long.parseLong(prop.getProperty("buildTime"));
@@ -55,15 +53,11 @@ public String getArtifactId() {
5553
return this.artifactId;
5654
}
5755

58-
public String getBuildNumber() {
59-
return this.buildNumber;
60-
}
61-
6256
public long getBuildTime() {
6357
return this.buildTime;
6458
}
6559

6660
public String getVersionBuild() {
67-
return this.version + "_" + this.buildNumber;
61+
return this.version;
6862
}
6963
}

LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class SocketContext(
5555
val serverConfig: ServerConfig,
5656
private var session: WebSocketSession,
5757
private val socketServer: SocketServer,
58-
val userId: String,
58+
private val userId: String,
59+
private val clientName: String?,
5960
val koe: KoeClient,
6061
eventHandlers: Collection<PluginEventHandler>,
6162
webSocketExtensions: List<WebSocketExtension>,
@@ -105,6 +106,14 @@ class SocketContext(
105106

106107
fun getPlayer(guildId: String) = getPlayer(guildId.toLong())
107108

109+
override fun getUserId(): Long {
110+
return userId.toLong()
111+
}
112+
113+
override fun getClientName(): String? {
114+
return clientName
115+
}
116+
108117
override fun getPlayer(guildId: Long) = players.computeIfAbsent(guildId) {
109118
val player = Player(this, guildId, audioPlayerManager, serverConfig)
110119
eventEmitter.onNewPlayer(player)

LavalinkServer/src/main/java/lavalink/server/io/SocketServer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class SocketServer(
9999
session,
100100
this,
101101
userId,
102+
clientName,
102103
koe.newClient(userId.toLong()),
103104
eventHandlers,
104105
webSocketExtensions,
@@ -176,4 +177,4 @@ class SocketServer(
176177
}
177178

178179
internal fun canResume(key: String) = resumableSessions[key]?.stopResumeTimeout() ?: false
179-
}
180+
}

plugin-api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77

88
val archivesBaseName = "plugin-api"
99
group = "dev.arbjerg.lavalink"
10-
version = "0.9.0"
10+
version = "3.6.0"
1111

1212
dependencies {
1313
compileOnly(libs.spring.boot)

plugin-api/src/main/java/dev/arbjerg/lavalink/api/ISocketContext.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
package dev.arbjerg.lavalink.api;
22

33
import org.json.JSONObject;
4+
import org.springframework.lang.Nullable;
45

56
import java.util.Map;
67

78
/**
89
* Represents a WebSocket connection
910
*/
1011
public interface ISocketContext {
12+
/**
13+
* @return the User ID of the Client.
14+
*/
15+
long getUserId();
16+
17+
/**
18+
* @return the name of the Client, or null if it was not specified.
19+
*/
20+
@Nullable
21+
String getClientName();
22+
1123
/**
1224
* Returns the player of a guild. Never returns null.
1325
*

0 commit comments

Comments
 (0)