Code cleanup

This commit is contained in:
Smart123s
2021-03-20 14:41:21 +01:00
parent 0cbf2a4e20
commit 6544e007f6
2 changed files with 1 additions and 4 deletions

View File

@ -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());

View File

@ -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;