implement KraSocketClient
parent
9a1eebf959
commit
8ea50c6b3b
10
pom.xml
10
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
@ -61,7 +61,7 @@ public class KrakatoaAPI extends JavaPlugin {
|
|||
} catch (URISyntaxException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
this.mongoManager = new MongoManager(this.configHandler.getMongodbHost(),
|
||||
this.configHandler.getMongodbPort(), this.configHandler.getMongodbUsername(),
|
||||
this.configHandler.getMongodbPassword());
|
||||
|
|
Loading…
Reference in New Issue