From b8a734a80e3573d3a52110e72e8e66b9ba370dd5 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Wed, 16 Jun 2021 18:37:29 +0400 Subject: [PATCH] oops wrong use --- ...ed-old-commits-from-forked-repo-Fastlogin.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/FastLogin-Patches/0002-Added-old-commits-from-forked-repo-Fastlogin.patch b/FastLogin-Patches/0002-Added-old-commits-from-forked-repo-Fastlogin.patch index 2ec4b69..dfed89f 100644 --- a/FastLogin-Patches/0002-Added-old-commits-from-forked-repo-Fastlogin.patch +++ b/FastLogin-Patches/0002-Added-old-commits-from-forked-repo-Fastlogin.patch @@ -82,7 +82,7 @@ index 8a81b14..db8f269 100644 + } + } + //end of Govindas code -+ // LimeLogin stop ++ // LimeLogin end } private void setOfflineId(InitialHandler connection, String username) { @@ -156,7 +156,7 @@ index 94500cb..b304559 100644 + if (!playerProfile.getName().contains("-")) { playerProfile.setPremium(true); } + //end of Govindas code + -+ // LimeLogin stop ++ // LimeLogin end playerProfile.getSaveLock().lock(); try { if (playerProfile.isSaved()) { @@ -170,7 +170,7 @@ index 94500cb..b304559 100644 + if (!playerProfile.getName().contains("-")) { playerProfile.setPremium(true); } + //end of Govindas code + -+ // LimeLogin stop ++ // LimeLogin end try (PreparedStatement saveStmt = con.prepareStatement(INSERT_PROFILE, RETURN_GENERATED_KEYS)) { saveStmt.setString(1, uuid); @@ -189,7 +189,7 @@ index 7efb157..b417e64 100644 + //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); @@ -240,11 +240,11 @@ index ec129a8..5490673 100644 + //if (core.getConfig().get("autoRegister", false) && (authHook == null || !authHook.isRegistered(username))) { + //end of Govindas comment + -+ // LimeLogin stop ++ // LimeLogin end + if (core.getConfig().get("autoRegister", false) && (authHook == null)) { + // LimeLogin start + requestPremiumLogin(source, profile, username, false); //Comment: always use false to fix an error XD -+ // LimeLogin stop ++ // LimeLogin end return true; } @@ -289,7 +289,7 @@ index 0000000..007083e + this.cancelled = cancelled; + } +} -+// LimeLogin stop ++// LimeLogin end \ No newline at end of file diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml index ecb1c44..477c026 100644