From 61f949cf97a6f939d26733cd10d4b1f7994c0574 Mon Sep 17 00:00:00 2001 From: Smart123s <28480228+Smart123s@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:17:41 +0200 Subject: [PATCH] Revert "Fix Floodgate detection for buggy ProtocolLib" This reverts commit 9978fe69 --- .../core/hooks/bedrock/FloodgateService.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/hooks/bedrock/FloodgateService.java b/core/src/main/java/com/github/games647/fastlogin/core/hooks/bedrock/FloodgateService.java index 9ef8985c..267a0267 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/hooks/bedrock/FloodgateService.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/hooks/bedrock/FloodgateService.java @@ -99,23 +99,11 @@ public class FloodgateService extends BedrockService { * The FloodgateApi does not support querying players by name, so this function * iterates over every online FloodgatePlayer and checks if the requested * username can be found - *
- * Falls back to non-prefixed name checks, if ProtocolLib is installed * * @param prefixedUsername the name of the player with the prefix appended * @return FloodgatePlayer if found, null otherwise */ public FloodgatePlayer getBedrockPlayer(String prefixedUsername) { - //prefixes are broken with ProtocolLib, so fall back to name checks without prefixes - //this should be removed if #493 gets fixed - if (core.getPlugin().isPluginInstalled("ProtocolLib")) { - for (FloodgatePlayer floodgatePlayer : floodgate.getPlayers()) { - if (floodgatePlayer.getUsername().equals(prefixedUsername)) { - return floodgatePlayer; - } - } - return null; - } for (FloodgatePlayer floodgatePlayer : floodgate.getPlayers()) { if (floodgatePlayer.getCorrectUsername().equals(prefixedUsername)) { return floodgatePlayer;