From 6544e007f6692b8f61b09c11c5692452e26ea322 Mon Sep 17 00:00:00 2001 From: Smart123s <28480228+Smart123s@users.noreply.github.com> Date: Sat, 20 Mar 2021 14:41:21 +0100 Subject: [PATCH] Code cleanup --- .../games647/fastlogin/bukkit/listener/ConnectionListener.java | 2 +- .../bukkit/listener/protocollib/ProtocolLibListener.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/ConnectionListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/ConnectionListener.java index 5ddad9bc..545284a4 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/ConnectionListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/ConnectionListener.java @@ -51,7 +51,7 @@ public class ConnectionListener implements Listener { if(Bukkit.getServer().getPluginManager().getPlugin("Geyser-Spigot") != null && Bukkit.getServer().getPluginManager().getPlugin("floodgate-bukkit") != null) { - //TODO: Does this return null if a player is connected through Geyser Online mode? + //TODO: Does this return null if a player is connected through Geyser Offline mode? FloodgatePlayer floodgatePlayer = FloodgateAPI.getPlayer(player.getUniqueId()); if (floodgatePlayer != null) { StoredProfile profile = plugin.getCore().getStorage().loadProfile(player.getName()); diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java index 165da38f..fbc3fda6 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java @@ -12,9 +12,6 @@ import java.security.KeyPair; import java.security.SecureRandom; import org.bukkit.entity.Player; -import org.geysermc.connector.GeyserConnector; -import org.geysermc.connector.common.AuthType; -import org.geysermc.connector.network.session.GeyserSession; import static com.comphenix.protocol.PacketType.Login.Client.ENCRYPTION_BEGIN; import static com.comphenix.protocol.PacketType.Login.Client.START;