diff --git a/pom.xml b/pom.xml
index d4a3b917..4aaf1943 100644
--- a/pom.xml
+++ b/pom.xml
@@ -513,7 +513,7 @@
org.apache.maven.plugins
maven-install-plugin
- 3.1.0
+ 3.1.2
@@ -1193,7 +1193,7 @@
org.xerial
sqlite-jdbc
- 3.45.3.0
+ 3.46.0.0
test
diff --git a/src/main/java/fr/xephi/authme/util/PlayerUtils.java b/src/main/java/fr/xephi/authme/util/PlayerUtils.java
index d9b867d7..3c9b6f4f 100644
--- a/src/main/java/fr/xephi/authme/util/PlayerUtils.java
+++ b/src/main/java/fr/xephi/authme/util/PlayerUtils.java
@@ -10,7 +10,7 @@ public final class PlayerUtils {
// Utility class
private PlayerUtils() {
}
- private static final boolean IS_LEAVES_SERVER = Utils.isClassLoaded("top.leavesmc.leaves.LeavesConfig");
+ private static final boolean isLeavesServer = Utils.isClassLoaded("top.leavesmc.leaves.LeavesConfig") || Utils.isClassLoaded("org.leavesmc.leaves.LeavesConfig");
/**
* Returns the IP of the given player.
@@ -29,7 +29,7 @@ public final class PlayerUtils {
* @return True if the player is an NPC, false otherwise
*/
public static boolean isNpc(Player player) {
- if (IS_LEAVES_SERVER) {
+ if (isLeavesServer) {
return player.hasMetadata("NPC") || player.getAddress() == null;
} else {
return player.hasMetadata("NPC");