From ca353868710ad0e3dcd7e6abd2e8c1cdd59161b7 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Wed, 16 Jun 2021 18:38:57 +0400 Subject: [PATCH] related to main --- ...removed-hooks-and-commented-them-out.patch | 4 ++-- ...0005-Removing-all-Auth-related-stuff.patch | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 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 a39306f..b2c2a1f 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 stop ++ // LimeLogin end } @Override @@ -59,7 +59,7 @@ index e26b271..25f1ac2 100644 } - } + } */ -+ // LimeLogin stop ++ // LimeLogin end public void sendPluginMessage(Server server, ChannelMessage message) { if (server != null) { diff --git a/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch b/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch index 5d3a766..394ce3d 100644 --- a/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch +++ b/FastLogin-Patches/0005-Removing-all-Auth-related-stuff.patch @@ -48,7 +48,7 @@ index db8f269..07df30a 100644 + //Disabled... + //Runnable loginTask = new ForceLoginTask(plugin.getCore(), player, server, session); + //plugin.getScheduler().runAsync(loginTask); -+ // LimeLogin stop ++ // LimeLogin end } @EventHandler @@ -64,7 +64,7 @@ index 410b1e4..0136f09 100644 - + // LimeLogin start + super(plugin.getCore()); -+ // LimeLogin stop ++ // LimeLogin end this.plugin = plugin; this.preLoginEvent = preLoginEvent; this.connection = connection; @@ -308,7 +308,7 @@ index ec3f924..90c9add 100644 - + // LimeLogin start + //private AuthPlugin

authPlugin; -+ // LimeLogin stop ++ // LimeLogin end public FastLoginCore(T plugin) { this.plugin = plugin; } @@ -322,7 +322,7 @@ index ec3f924..90c9add 100644 return authPlugin; } + */ -+ // LimeLogin stop ++ // LimeLogin end public RateLimiter getRateLimiter() { return rateLimiter; @@ -334,7 +334,7 @@ index ec3f924..90c9add 100644 this.authPlugin = authPlugin; } + */ -+ // LimeLogin stop ++ // LimeLogin end public void saveDefaultFile(String fileName) { Path dataFolder = plugin.getPluginFolder(); @@ -444,7 +444,7 @@ index b417e64..0000000 - //storage.save(playerProfile); - //end of Govindas comment - -- // LimeLogin stop +- // LimeLogin end - } - } catch (Exception ex) { - core.getPlugin().getLog().warn("ERROR ON FORCE LOGIN of {}", getName(player), ex); @@ -506,7 +506,7 @@ index 5490673..dabe324 100644 - protected final AuthPlugin

authHook; + // LimeLogin start + //protected final AuthPlugin

authHook; -+ // LimeLogin stop ++ // LimeLogin end private final FloodgateHook floodgateHook; - public JoinManagement(FastLoginCore core, AuthPlugin

authHook) { @@ -516,7 +516,7 @@ index 5490673..dabe324 100644 - this.authHook = authHook; this.floodgateHook = new FloodgateHook<>(core); } -+ // LimeLogin stop ++ // LimeLogin end + public void onLogin(String username, S source) { @@ -524,12 +524,12 @@ index 5490673..dabe324 100644 @@ -130,7 +133,7 @@ public abstract class JoinManagement

{ //end of Govindas comment - // LimeLogin stop + // 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 stop + // LimeLogin end -- 2.32.0.windows.1