add option to force encryption

This commit is contained in:
Dank074 2021-01-28 01:34:59 -06:00
parent 6715e48aa5
commit c14746a05f

View File

@ -57,7 +57,7 @@ public class SecureLoginEvent extends MessageHandler {
if (!Emulator.isReady)
return;
if (Emulator.getCrypto().isEnabled() && !this.client.isHandshakeFinished()) {
if (Emulator.getConfig().getBoolean("encryption.forced", false) && Emulator.getCrypto().isEnabled() && !this.client.isHandshakeFinished()) {
Emulator.getGameServer().getGameClientManager().disposeClient(this.client);
return;
}