implement KraSocketClient

master
Alex 2021-12-27 13:15:36 +01:00
parent ab4b7f9b8b
commit 9f2569b118
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import earth.krakatao.KraSocketClientConfig;
import earth.krakatao.events.KraSocketClientEventInitiater; import earth.krakatao.events.KraSocketClientEventInitiater;
import earth.krakatao.events.KraSocketClientEventInterface; import earth.krakatao.events.KraSocketClientEventInterface;
import earth.krakatao.protocol.KraSocketClientProtocol; import earth.krakatao.protocol.KraSocketClientProtocol;
import earth.krakatao.protocol.KraSocketClientProtocolMessage;
import java.io.IOException; import java.io.IOException;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.util.List; import java.util.List;
@ -62,6 +63,10 @@ public class KrakatoaAPI extends JavaPlugin {
this.kraSocketClientEventInterface, this.kraProtocol); this.kraSocketClientEventInterface, this.kraProtocol);
System.out.println("here " + this.kraSocketClient.sendTest()); System.out.println("here " + this.kraSocketClient.sendTest());
KraSocketClientProtocolMessage kraSocketClientProtocolMessage = new KraSocketClientProtocolMessage(
(byte) 0, 0, 0, "", (short) 0, "");
this.kraSocketClient.sendMsg(kraSocketClientProtocolMessage);
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
e.printStackTrace(); e.printStackTrace();
} }