Skip to content

Commit

Permalink
a lil more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Dec 16, 2024
1 parent 9d7bf1f commit 0c6a3ac
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public void onServerPreConnect(ServerPreConnectEvent event) {

@Override
public void onReady(ProtoConnection connection) {
System.out.println("ON READY");
System.out.println(ProtoProxy.getConnectedServer(WORMHOLE, connection.getRemoteAddress()));

ProtoProxy.getRegisteredServer(connection.getRemoteAddress())
.flatMap(SingularityConfig::getSyncGroup)
.ifPresent(group -> connection.send(group.getSettings()));
Expand All @@ -96,6 +99,8 @@ public void onReady(ProtoConnection connection) {
public void handlePacket(ProtoConnection connection, Object packet) {
System.out.println("Got packet from: " + connection + " of type: " + packet);

System.out.println(ProtoProxy.getConnectedServer(WORMHOLE, connection.getRemoteAddress()));

ProtoProxy.getConnectedServer(WORMHOLE, connection.getRemoteAddress()).ifPresent(server -> {
System.out.println("Server " + server + " is connected, able to handle packet");

Expand Down

0 comments on commit 0c6a3ac

Please sign in to comment.