Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

v2.5.0 -- See Change Notes

Compare
Choose a tag to compare
@SamOphis SamOphis released this 04 Jul 00:26
· 13 commits to master since this release

Change Notes

  • Semi-breaking changes

    • Made getSocket return a possibly-null WebSocket instance now (instead of a not-null version).
    • Made getBestNode return a possibly-null AudioNode 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 a SocketConnectionException.
    • 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 to true, 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.
  • Non-breaking changes

    • You can now set a LavaPlayer instance's connected node to null, which attempts to destroy the player (disconnecting it from the currently connected node).
    • Two new AudioNode methods: openConnection and closeConnection, which can be used to open a new connection from LavaClient to a node and to terminate it.

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'
}