feat: Velocity plugin

This commit is contained in:
2025-01-02 12:16:41 +07:00
parent dbf4edd884
commit eb92d3e689
11 changed files with 930 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package cafe.kirameki.minikuraVelocity.utils
import cafe.kirameki.minikuraVelocity.Main
import cafe.kirameki.minikuraVelocity.MinikuraWebSocketClient
import com.velocitypowered.api.proxy.ProxyServer
import java.net.URI
fun createWebSocketClient(plugin: Main, server: ProxyServer, websocketUrl: String): MinikuraWebSocketClient {
val uri = URI(websocketUrl)
val client = MinikuraWebSocketClient(plugin, server, uri)
return client
}