implement KraSocketClient
parent
9a1eebf959
commit
8ea50c6b3b
10
pom.xml
10
pom.xml
|
@ -46,7 +46,6 @@
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--This adds the Spigot API artifact to the build -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
|
@ -68,18 +67,18 @@
|
||||||
<groupId>org.java-websocket</groupId>
|
<groupId>org.java-websocket</groupId>
|
||||||
<version>1.5.2</version> <!-- 1.5.1 -->
|
<version>1.5.2</version> <!-- 1.5.1 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--<dependency>
|
<dependency>
|
||||||
<artifactId>cloudnet-driver</artifactId>
|
<artifactId>cloudnet-driver</artifactId>
|
||||||
<groupId>de.dytanic.cloudnet</groupId>
|
<groupId>de.dytanic.cloudnet</groupId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<version>3.4.0-RELEASE</version>
|
<version>3.4.0-RELEASE</version>
|
||||||
</dependency>-->
|
</dependency>
|
||||||
<dependency>
|
<!-- <dependency>
|
||||||
<artifactId>cloudnet</artifactId>
|
<artifactId>cloudnet</artifactId>
|
||||||
<groupId>de.dytanic.cloudnet</groupId>
|
<groupId>de.dytanic.cloudnet</groupId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<version>3.4.0-RELEASE</version>
|
<version>3.4.0-RELEASE</version>
|
||||||
</dependency>
|
</dependency> -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
|
@ -104,7 +103,6 @@
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
<!-- This adds the Spigot Maven repository to the build -->
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>spigot-repo</id>
|
<id>spigot-repo</id>
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package net.krakatoaapi;
|
package net.krakatoaapi;
|
||||||
|
|
||||||
import de.dytanic.cloudnet.CloudNet;
|
import de.dytanic.cloudnet.driver.CloudNetDriver;
|
||||||
import earth.krakatao.KraSocketClient;
|
import earth.krakatao.KraSocketClient;
|
||||||
import earth.krakatao.KraSocketClientConfig;
|
import earth.krakatao.KraSocketClientConfig;
|
||||||
import earth.krakatao.events.KraSocketClientEventInitiater;
|
import earth.krakatao.events.KraSocketClientEventInitiater;
|
||||||
|
@ -50,7 +50,7 @@ public class KrakatoaAPI extends JavaPlugin {
|
||||||
KraSocketClientConfig kraSocketClientConfig = new KraSocketClientConfig(
|
KraSocketClientConfig kraSocketClientConfig = new KraSocketClientConfig(
|
||||||
this.configHandler.getWebSocketProtocol(), this.configHandler.getWebSocketHost(),
|
this.configHandler.getWebSocketProtocol(), this.configHandler.getWebSocketHost(),
|
||||||
this.configHandler.getWebSocketPort(), this.configHandler.getWebSocketAccessKey(),
|
this.configHandler.getWebSocketPort(), this.configHandler.getWebSocketAccessKey(),
|
||||||
CloudNet.getInstance().getComponentName());
|
CloudNetDriver.getInstance().getComponentName());
|
||||||
|
|
||||||
this.kraSocketClientEventInitiater = new KraSocketClientEventInitiater();
|
this.kraSocketClientEventInitiater = new KraSocketClientEventInitiater();
|
||||||
this.kraSocketClientEventInterface = new SocketClientMessageListener();
|
this.kraSocketClientEventInterface = new SocketClientMessageListener();
|
||||||
|
@ -61,7 +61,7 @@ public class KrakatoaAPI extends JavaPlugin {
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mongoManager = new MongoManager(this.configHandler.getMongodbHost(),
|
this.mongoManager = new MongoManager(this.configHandler.getMongodbHost(),
|
||||||
this.configHandler.getMongodbPort(), this.configHandler.getMongodbUsername(),
|
this.configHandler.getMongodbPort(), this.configHandler.getMongodbUsername(),
|
||||||
this.configHandler.getMongodbPassword());
|
this.configHandler.getMongodbPassword());
|
||||||
|
|
Loading…
Reference in New Issue