Remove recursion in VaultResolver

Correctly call into `perms` instead of creating an infinite recursion.
This commit is contained in:
Kenzie Togami 2018-11-30 13:15:05 -08:00
parent 7ad181f8a4
commit b192466ce2
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81

View File

@ -90,7 +90,7 @@ public class VaultResolver implements PermissionsResolver {
@Override
public boolean hasPermission(String worldName, OfflinePlayer player, String permission) {
return hasPermission(worldName, player.getName(), permission);
return perms.playerHas(worldName, player, permission);
}
@Override