forked from TuxCoding/FastLogin
Use isPluginEnabled() in ConnectionListener.java
Co-authored-by: games647 <games647@users.noreply.github.com>
This commit is contained in:
@ -51,8 +51,8 @@ public class ConnectionListener implements Listener {
|
|||||||
// having the login session from the login process
|
// having the login session from the login process
|
||||||
BukkitLoginSession session = plugin.getSession(player.getAddress());
|
BukkitLoginSession session = plugin.getSession(player.getAddress());
|
||||||
|
|
||||||
if(Bukkit.getServer().getPluginManager().getPlugin("Geyser-Spigot") != null &&
|
if (Bukkit.getServer().getPluginManager().isPluginEnabled("Geyser-Spigot") &&
|
||||||
Bukkit.getServer().getPluginManager().getPlugin("floodgate-bukkit") != null) {
|
Bukkit.getServer().getPluginManager().isPluginEnabled("floodgate-bukkit")) {
|
||||||
FloodgatePlayer floodgatePlayer = null;
|
FloodgatePlayer floodgatePlayer = null;
|
||||||
|
|
||||||
// check if the player is really connected through Geyser
|
// check if the player is really connected through Geyser
|
||||||
|
Reference in New Issue
Block a user