From c14746a05f44a65ebb56ed1d4b5dd34656d014a9 Mon Sep 17 00:00:00 2001 From: Dank074 Date: Thu, 28 Jan 2021 01:34:59 -0600 Subject: [PATCH] add option to force encryption --- .../eu/habbo/messages/incoming/handshake/SecureLoginEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/handshake/SecureLoginEvent.java b/src/main/java/com/eu/habbo/messages/incoming/handshake/SecureLoginEvent.java index 33cc6b5f..6b83322c 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/handshake/SecureLoginEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/handshake/SecureLoginEvent.java @@ -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; }