implement KraSocketClient

master
Alex 2021-12-27 12:34:02 +01:00
parent 9a1eebf959
commit 8ea50c6b3b
2 changed files with 7 additions and 9 deletions

10
pom.xml
View File

@ -46,7 +46,6 @@
</build>
<dependencies>
<!--This adds the Spigot API artifact to the build -->
<dependency>
<artifactId>spigot-api</artifactId>
<groupId>org.spigotmc</groupId>
@ -68,18 +67,18 @@
<groupId>org.java-websocket</groupId>
<version>1.5.2</version> <!-- 1.5.1 -->
</dependency>
<!--<dependency>
<dependency>
<artifactId>cloudnet-driver</artifactId>
<groupId>de.dytanic.cloudnet</groupId>
<scope>provided</scope>
<version>3.4.0-RELEASE</version>
</dependency>-->
<dependency>
</dependency>
<!-- <dependency>
<artifactId>cloudnet</artifactId>
<groupId>de.dytanic.cloudnet</groupId>
<scope>provided</scope>
<version>3.4.0-RELEASE</version>
</dependency>
</dependency> -->
<dependency>
<artifactId>lombok</artifactId>
<groupId>org.projectlombok</groupId>
@ -104,7 +103,6 @@
<enabled>true</enabled>
</snapshots>
</repository>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>

View File

@ -1,6 +1,6 @@
package net.krakatoaapi;
import de.dytanic.cloudnet.CloudNet;
import de.dytanic.cloudnet.driver.CloudNetDriver;
import earth.krakatao.KraSocketClient;
import earth.krakatao.KraSocketClientConfig;
import earth.krakatao.events.KraSocketClientEventInitiater;
@ -50,7 +50,7 @@ public class KrakatoaAPI extends JavaPlugin {
KraSocketClientConfig kraSocketClientConfig = new KraSocketClientConfig(
this.configHandler.getWebSocketProtocol(), this.configHandler.getWebSocketHost(),
this.configHandler.getWebSocketPort(), this.configHandler.getWebSocketAccessKey(),
CloudNet.getInstance().getComponentName());
CloudNetDriver.getInstance().getComponentName());
this.kraSocketClientEventInitiater = new KraSocketClientEventInitiater();
this.kraSocketClientEventInterface = new SocketClientMessageListener();