#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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user