From f5ad62856cc8b5db30d6707e71d2c146ea7a53f7 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Tue, 15 Jun 2021 02:30:29 +0400 Subject: [PATCH] removed all auth hooks stuff --- .../0003-removed-hooks-and-commented-them-out.patch | 7 ++++--- .../0005-Removing-all-Auth-related-stuff.patch | 9 ++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/FastLogin-Patches/0003-removed-hooks-and-commented-them-out.patch b/FastLogin-Patches/0003-removed-hooks-and-commented-them-out.patch index b2c2a1f..af89340 100644 --- a/FastLogin-Patches/0003-removed-hooks-and-commented-them-out.patch +++ b/FastLogin-Patches/0003-removed-hooks-and-commented-them-out.patch @@ -34,7 +34,7 @@ index e26b271..25f1ac2 100644 - registerHook(); + // LimeLogin start + //registerHook(); -+ // LimeLogin end ++ // LimeLogin stop } @Override @@ -57,8 +57,9 @@ index e26b271..25f1ac2 100644 } catch (ReflectiveOperationException ex) { logger.error("Couldn't load the auth hook class", ex); } -- } -+ } */ + ++ } + + // LimeLogin end public void sendPluginMessage(Server server, ChannelMessage message) { diff --git a/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch b/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch index 394ce3d..4681333 100644 --- a/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch +++ b/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch @@ -65,6 +65,7 @@ index 410b1e4..0136f09 100644 + // LimeLogin start + super(plugin.getCore()); + // LimeLogin end + this.plugin = plugin; this.preLoginEvent = preLoginEvent; this.connection = connection; @@ -309,6 +310,7 @@ index ec3f924..90c9add 100644 + // LimeLogin start + //private AuthPlugin

authPlugin; + // LimeLogin end + public FastLoginCore(T plugin) { this.plugin = plugin; } @@ -323,6 +325,8 @@ index ec3f924..90c9add 100644 } + */ + // LimeLogin end + + public RateLimiter getRateLimiter() { return rateLimiter; @@ -516,6 +520,7 @@ index 5490673..dabe324 100644 - this.authHook = authHook; this.floodgateHook = new FloodgateHook<>(core); } + + // LimeLogin end + @@ -523,13 +528,15 @@ index 5490673..dabe324 100644 core.getPlugin().getLog().info("Handling player {}", username); @@ -130,7 +133,7 @@ public abstract class JoinManagement

{ //end of Govindas comment - + // LimeLogin end + - if (core.getConfig().get("autoRegister", false) && (authHook == null)) { + if (core.getConfig().get("autoRegister", false)) { // LimeLogin start requestPremiumLogin(source, profile, username, false); //Comment: always use false to fix an error XD // LimeLogin end + -- 2.32.0.windows.1