diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index fda2bde0d..f78c1ebdc 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -55,7 +55,6 @@ import fr.xephi.authme.settings.OtherAccounts; import fr.xephi.authme.settings.Settings; import fr.xephi.authme.settings.Spawn; import fr.xephi.authme.util.Utils; -import net.milkbowl.vault.permission.Permission; import net.minelink.ctplus.CombatTagPlus; /** diff --git a/src/main/java/fr/xephi/authme/DataManager.java b/src/main/java/fr/xephi/authme/DataManager.java index 3d74da41e..d4688e5c5 100644 --- a/src/main/java/fr/xephi/authme/DataManager.java +++ b/src/main/java/fr/xephi/authme/DataManager.java @@ -14,7 +14,6 @@ import org.bukkit.entity.Player; import fr.xephi.authme.settings.Settings; import fr.xephi.authme.util.Utils; -import net.milkbowl.vault.permission.Permission; /** */ diff --git a/src/main/java/fr/xephi/authme/cache/limbo/LimboCache.java b/src/main/java/fr/xephi/authme/cache/limbo/LimboCache.java index c468a90cb..59dee4688 100644 --- a/src/main/java/fr/xephi/authme/cache/limbo/LimboCache.java +++ b/src/main/java/fr/xephi/authme/cache/limbo/LimboCache.java @@ -14,7 +14,6 @@ import fr.xephi.authme.cache.backup.DataFileCache; import fr.xephi.authme.cache.backup.JsonCache; import fr.xephi.authme.events.ResetInventoryEvent; import fr.xephi.authme.settings.Settings; -import org.bukkit.permissions.Permission; /** */ diff --git a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java index 9ba1dcf10..a2af1ba4a 100644 --- a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java +++ b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java @@ -500,7 +500,7 @@ public class PermissionsManager { * * @return The name of the primary permission group. Or null. */ - @SuppressWarnings({"unchecked", "rawtypes", "deprecation"}) + @SuppressWarnings("deprecation") public String getPrimaryGroup(Player player) { // If no permissions system is used, return an empty list if(!isEnabled()) diff --git a/src/main/java/fr/xephi/authme/util/Utils.java b/src/main/java/fr/xephi/authme/util/Utils.java index 7e220e3a4..6623c8dc0 100644 --- a/src/main/java/fr/xephi/authme/util/Utils.java +++ b/src/main/java/fr/xephi/authme/util/Utils.java @@ -219,10 +219,6 @@ public final class Utils { && (Settings.getUnrestrictedName.contains(player.getName())); } - private static boolean useGroupSystem() { - return Settings.isPermissionCheckEnabled && !Settings.getUnloggedinGroup.isEmpty(); - } - /** * Method packCoords. * @param x double