#872 Use Player#hasPermission instead of custom PermissionHandler method

- Use Player#hasPermission to check if a player has a permission
- Remove hasPermission method from PermissionHandler implementations
This commit is contained in:
ljacqu
2016-08-31 21:27:43 +02:00
parent b07e60a807
commit dd27ff7daa
8 changed files with 2 additions and 48 deletions
@@ -44,11 +44,6 @@ public class VaultHandler implements PermissionHandler {
return vaultProvider.hasGroupSupport();
}
@Override
public boolean hasPermission(Player player, PermissionNode node) {
return vaultProvider.has(player, node.getNode());
}
@Override
public boolean hasPermissionOffline(String name, PermissionNode node) {
return vaultProvider.has("", name, node.getNode());