Finish permissions cleanup

This commit is contained in:
Gabriele C 2015-12-20 13:25:32 +01:00
parent bd439380d6
commit e9a2c8ad18
3 changed files with 1 additions and 25 deletions

View File

@ -417,11 +417,6 @@ public class PermissionsManager implements PermissionsService {
// Vault
return vaultPerms.hasGroupSupport();
case PERMISSIONS:
// Legacy permissions
// FIXME: Supported by plugin, but addGroup and removeGroup haven't been implemented correctly yet!
return false;
case NONE:
// Not hooked into any permissions system, return false
return false;
@ -502,7 +497,6 @@ public class PermissionsManager implements PermissionsService {
case PERMISSIONS_EX:
case PERMISSIONS_BUKKIT:
case B_PERMISSIONS:
case PERMISSIONS: // FIXME: Is this correct for PERMISSIONS?
// Get the groups of the player
List<String> groups = getGroups(player);
@ -639,11 +633,6 @@ public class PermissionsManager implements PermissionsService {
vaultPerms.playerAddGroup(player, groupName);
return true;
case PERMISSIONS:
// Permissions
// FIXME: Add this method!
//return this.defaultPerms.group
case NONE:
// Not hooked into any permissions system, return false
return false;
@ -725,11 +714,6 @@ public class PermissionsManager implements PermissionsService {
vaultPerms.playerRemoveGroup(player, groupName);
return true;
case PERMISSIONS:
// Permissions
// FIXME: Add this method!
//return this.defaultPerms.group
case NONE:
// Not hooked into any permissions system, return false
return false;
@ -819,11 +803,6 @@ public class PermissionsManager implements PermissionsService {
vaultPerms.playerAddGroup(player, groupName);
return true;
case PERMISSIONS:
// Permissions
// FIXME: Add this method!
//return this.defaultPerms.group
case NONE:
// Not hooked into any permissions system, return false
return false;

View File

@ -2,7 +2,6 @@ package fr.xephi.authme.permission;
import fr.xephi.authme.command.CommandDescription;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/**
* Interface for dealing with permissions.

View File

@ -17,9 +17,7 @@ public enum PermissionsSystemType {
Z_PERMISSIONS("zPermissions"),
VAULT("Vault"),
PERMISSIONS("Permissions");
VAULT("Vault");
public final String name;