This repository has been archived by the owner on Jul 23, 2020. It is now read-only.
v2.5.0 -- See Change Notes
Change Notes
-
Semi-breaking changes
- Made
getSocket
return a possibly-nullWebSocket
instance now (instead of a not-null version). - Made
getBestNode
return a possibly-nullAudioNode
instance (it no longer throws). - Made the initial connection when creating an
AudioNode
no longer throw exceptions due to new connection logic. - Opening a new connection outside of the initial constructor connection attempt can throw an
IllegalStateException
or aSocketConnectionException
. - Deprecated the constructors that let you specify whether or not to set Dynamic Code Generation as the JSON Encoding/Decoding option in Jsoniter (
overrideJson
). They now are locked totrue
, same as the configuration source. This is because Jsoniter causes a stack overflow error when using reflection (overrideJson=false
). Due to be removed in the next minor/major version bump.
- Made
-
Non-breaking changes
- You can now set a
LavaPlayer
instance's connected node tonull
, which attempts to destroy the player (disconnecting it from the currently connected node). - Two new
AudioNode
methods:openConnection
andcloseConnection
, which can be used to open a new connection from LavaClient to a node and to terminate it.
- You can now set a
Adding LavaClient
As always, you can add LavaClient through JCenter with any good build tool, or you can use the binaries attached to this release. Here's a basic example on how you add LavaClient with Gradle:
repositories {
jcenter()
}
dependencies {
compile 'com.github.samophis:LavaClient:2.5.0'
}