mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-23 17:17:36 +01:00
Finish permissions cleanup
This commit is contained in:
parent
bd439380d6
commit
e9a2c8ad18
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -17,9 +17,7 @@ public enum PermissionsSystemType {
|
||||
|
||||
Z_PERMISSIONS("zPermissions"),
|
||||
|
||||
VAULT("Vault"),
|
||||
|
||||
PERMISSIONS("Permissions");
|
||||
VAULT("Vault");
|
||||
|
||||
public final String name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user