forked from TuxCoding/FastLogin
Use isPluginEnabled() in NameCheckTask.java
This commit is contained in:
@ -48,7 +48,7 @@ public class NameCheckTask extends JoinManagement<Player, CommandSender, Protoco
|
|||||||
try {
|
try {
|
||||||
// check if the player is connecting through Geyser
|
// check if the player is connecting through Geyser
|
||||||
if (!plugin.getCore().getConfig().getString("allowFloodgateNameConflict").equalsIgnoreCase("false") &&
|
if (!plugin.getCore().getConfig().getString("allowFloodgateNameConflict").equalsIgnoreCase("false") &&
|
||||||
Bukkit.getServer().getPluginManager().getPlugin("Geyser-Spigot") != null &&
|
Bukkit.getServer().getPluginManager().isPluginEnabled("Geyser-Spigot") &&
|
||||||
GeyserConnector.getInstance().getDefaultAuthType() == AuthType.FLOODGATE) {
|
GeyserConnector.getInstance().getDefaultAuthType() == AuthType.FLOODGATE) {
|
||||||
// the Floodgate API requires UUID, which is inaccessible at this state
|
// the Floodgate API requires UUID, which is inaccessible at this state
|
||||||
// workaround: iterate over Geyser's player's usernames
|
// workaround: iterate over Geyser's player's usernames
|
||||||
|
Reference in New Issue
Block a user