mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 12:45:57 +01:00
cleanup
This commit is contained in:
parent
da662afcf4
commit
69a09aec17
@ -55,7 +55,6 @@ import fr.xephi.authme.settings.OtherAccounts;
|
|||||||
import fr.xephi.authme.settings.Settings;
|
import fr.xephi.authme.settings.Settings;
|
||||||
import fr.xephi.authme.settings.Spawn;
|
import fr.xephi.authme.settings.Spawn;
|
||||||
import fr.xephi.authme.util.Utils;
|
import fr.xephi.authme.util.Utils;
|
||||||
import net.milkbowl.vault.permission.Permission;
|
|
||||||
import net.minelink.ctplus.CombatTagPlus;
|
import net.minelink.ctplus.CombatTagPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,6 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
import fr.xephi.authme.settings.Settings;
|
import fr.xephi.authme.settings.Settings;
|
||||||
import fr.xephi.authme.util.Utils;
|
import fr.xephi.authme.util.Utils;
|
||||||
import net.milkbowl.vault.permission.Permission;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -14,7 +14,6 @@ import fr.xephi.authme.cache.backup.DataFileCache;
|
|||||||
import fr.xephi.authme.cache.backup.JsonCache;
|
import fr.xephi.authme.cache.backup.JsonCache;
|
||||||
import fr.xephi.authme.events.ResetInventoryEvent;
|
import fr.xephi.authme.events.ResetInventoryEvent;
|
||||||
import fr.xephi.authme.settings.Settings;
|
import fr.xephi.authme.settings.Settings;
|
||||||
import org.bukkit.permissions.Permission;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -500,7 +500,7 @@ public class PermissionsManager {
|
|||||||
*
|
*
|
||||||
* @return The name of the primary permission group. Or null.
|
* @return The name of the primary permission group. Or null.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"unchecked", "rawtypes", "deprecation"})
|
@SuppressWarnings("deprecation")
|
||||||
public String getPrimaryGroup(Player player) {
|
public String getPrimaryGroup(Player player) {
|
||||||
// If no permissions system is used, return an empty list
|
// If no permissions system is used, return an empty list
|
||||||
if(!isEnabled())
|
if(!isEnabled())
|
||||||
|
@ -219,10 +219,6 @@ public final class Utils {
|
|||||||
&& (Settings.getUnrestrictedName.contains(player.getName()));
|
&& (Settings.getUnrestrictedName.contains(player.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean useGroupSystem() {
|
|
||||||
return Settings.isPermissionCheckEnabled && !Settings.getUnloggedinGroup.isEmpty();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method packCoords.
|
* Method packCoords.
|
||||||
* @param x double
|
* @param x double
|
||||||
|
Loading…
Reference in New Issue
Block a user