implement KraSocketClient
parent
9f2569b118
commit
0db831b697
|
@ -6,7 +6,6 @@ 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;
|
||||||
|
@ -64,9 +63,7 @@ public class KrakatoaAPI extends JavaPlugin {
|
||||||
|
|
||||||
System.out.println("here " + this.kraSocketClient.sendTest());
|
System.out.println("here " + this.kraSocketClient.sendTest());
|
||||||
|
|
||||||
KraSocketClientProtocolMessage kraSocketClientProtocolMessage = new KraSocketClientProtocolMessage(
|
this.kraSocketClient.getSocketClient().connect();
|
||||||
(byte) 0, 0, 0, "", (short) 0, "");
|
|
||||||
this.kraSocketClient.sendMsg(kraSocketClientProtocolMessage);
|
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue