diff --git a/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java b/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java index 8a23c53..862b37a 100644 --- a/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java +++ b/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java @@ -3,6 +3,7 @@ import net.azisaba.azipluginmessaging.api.entity.Player; import net.azisaba.azipluginmessaging.api.protocol.Protocol; import net.azisaba.azipluginmessaging.api.server.PacketSender; +import net.azisaba.azipluginmessaging.api.util.EncryptionUtil; import net.azisaba.azipluginmessaging.spigot.SpigotPlugin; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; @@ -113,6 +114,8 @@ public boolean isChallengeEquals(@NotNull String challenge) { public String toString() { return "PlayerImpl{" + "handle=" + handle + + ", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) + + ", remotePublicKey=" + EncryptionUtil.encodePublicKey(remotePublicKey) + ", encrypted=" + encrypted + '}'; } diff --git a/velocity/src/main/java/net/azisaba/azipluginmessaging/velocity/server/ServerConnectionImpl.java b/velocity/src/main/java/net/azisaba/azipluginmessaging/velocity/server/ServerConnectionImpl.java index 5e8f1ba..b7a3cb1 100644 --- a/velocity/src/main/java/net/azisaba/azipluginmessaging/velocity/server/ServerConnectionImpl.java +++ b/velocity/src/main/java/net/azisaba/azipluginmessaging/velocity/server/ServerConnectionImpl.java @@ -6,6 +6,7 @@ import net.azisaba.azipluginmessaging.api.protocol.Protocol; import net.azisaba.azipluginmessaging.api.server.ServerConnection; import net.azisaba.azipluginmessaging.api.server.ServerInfo; +import net.azisaba.azipluginmessaging.api.util.EncryptionUtil; import net.azisaba.azipluginmessaging.velocity.entity.PlayerImpl; import org.jetbrains.annotations.NotNull; @@ -111,6 +112,8 @@ public String toString() { return "ServerConnectionImpl{" + "handle=" + handle + ", encrypted=" + encrypted + + ", publicKey=" + EncryptionUtil.encodePublicKey(keyPair.getPublic()) + + ", remotePublicKey=" + EncryptionUtil.encodePublicKey(publicKey) + '}'; } }