From e84bde7bc554e26f798ae1cd61cfb8e197c307fe Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Wed, 28 Jul 2021 01:03:03 +0400 Subject: [PATCH] fix: govindas system checks --- ...-remove-bukkit-IDK-HOW-IT-REAPPEARED.patch | 4 +- ...ystem-was-checking-if-names-contains.patch | 221 ++++++++++++++++++ 2 files changed, 223 insertions(+), 2 deletions(-) create mode 100644 FastLogin-Patches/0005-fixed-govindas-system-was-checking-if-names-contains.patch diff --git a/FastLogin-Patches/0004-remove-bukkit-IDK-HOW-IT-REAPPEARED.patch b/FastLogin-Patches/0004-remove-bukkit-IDK-HOW-IT-REAPPEARED.patch index f620b7c..eafcfa0 100644 --- a/FastLogin-Patches/0004-remove-bukkit-IDK-HOW-IT-REAPPEARED.patch +++ b/FastLogin-Patches/0004-remove-bukkit-IDK-HOW-IT-REAPPEARED.patch @@ -1,7 +1,7 @@ -From 200a3fff4055ee5666aa1c04f323d9d078f68207 Mon Sep 17 00:00:00 2001 +From d99c9bee21a8a7ba42808069e31e545247bd3f9c Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Mon, 26 Jul 2021 21:55:28 +0400 -Subject: [PATCH] remove bukkit IDK HOW IT REAPPEARED. +Subject: [PATCH] remove bukkit IDK HOW IT REAPPEARED. diff --git a/bukkit/pom.xml b/bukkit/pom.xml diff --git a/FastLogin-Patches/0005-fixed-govindas-system-was-checking-if-names-contains.patch b/FastLogin-Patches/0005-fixed-govindas-system-was-checking-if-names-contains.patch new file mode 100644 index 0000000..5f71c69 --- /dev/null +++ b/FastLogin-Patches/0005-fixed-govindas-system-was-checking-if-names-contains.patch @@ -0,0 +1,221 @@ +From 0fb0b1654a5d157c12b84a2c9ef58671d3903b0c Mon Sep 17 00:00:00 2001 +From: mohammed jasem alaajel +Date: Wed, 28 Jul 2021 01:01:53 +0400 +Subject: [PATCH] fixed: govindas system was checking if names contains it + should be char at since cracked player can have many chars in the name like + -hi-there + + +diff --git a/.gitignore b/.gitignore +new file mode 100644 +index 0000000..713a152 +--- /dev/null ++++ b/.gitignore +@@ -0,0 +1,31 @@ ++# Compiled class file ++*.class ++ ++# Log file ++*.log ++ ++# BlueJ files ++*.ctxt ++ ++# Mobile Tools for Java (J2ME) ++.mtj.tmp/ ++ ++#maven ++target ++out ++ ++#intellji idea ++.idea ++*.iml ++# Package Files # ++*.jar ++*.war ++*.nar ++*.ear ++*.zip ++*.tar.gz ++*.rar ++ ++# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml ++hs_err_pid* ++ +diff --git a/bungee/Limelogin.bungee.iml b/bungee/Limelogin.bungee.iml +deleted file mode 100644 +index 09874bc..0000000 +--- a/bungee/Limelogin.bungee.iml ++++ /dev/null +@@ -1,106 +0,0 @@ +- +- +- +- +- +- +- BUNGEECORD +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +\ No newline at end of file +diff --git a/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java b/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java +index fef86f5..3f33ae3 100644 +--- a/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java ++++ b/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java +@@ -161,7 +161,7 @@ public class ConnectListener implements Listener { + // LimeLogin start + //start of Govindas code to auto-add "-" character for offline mode users differentiation from online mode + else { +- if (!connection.getName().contains("-")) { ++ if (!(connection.getName().charAt(0) == '-')) { + InitialHandler initialHandler = (InitialHandler) loginEvent.getConnection(); + //TODO add bedrock check of player and don't trigger this for bedrock users + LoginSession session = plugin.getSession().get(connection); +@@ -176,7 +176,7 @@ public class ConnectListener implements Listener { + System.out.println("Profile uuid: " + session.getProfile().getId()); + System.out.println("Session uuid: " + session.getUuid()); + System.out.println("Offline uuid: " + checkUUID); +- if (username.contains("*")) { ++ if (username.charAt(0)== '*') { + + if (checkUUID.equals(session.getProfile().getId())) { + System.out.println("IT EQUALS!"); +diff --git a/core/limelogin.core.iml b/core/limelogin.core.iml +deleted file mode 100644 +index 218e53c..0000000 +--- a/core/limelogin.core.iml ++++ /dev/null +@@ -1,31 +0,0 @@ +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +\ No newline at end of file +-- +2.25.1 +