mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Code cleanup
This commit is contained in:
@ -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());
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user