From b192466ce21b2c237587baa8721331f8306f5e17 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Fri, 30 Nov 2018 13:15:05 -0800 Subject: [PATCH] Remove recursion in VaultResolver Correctly call into `perms` instead of creating an infinite recursion. --- .../src/main/java/com/sk89q/wepif/VaultResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/wepif/VaultResolver.java b/worldedit-bukkit/src/main/java/com/sk89q/wepif/VaultResolver.java index f20087196..a97017ceb 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/wepif/VaultResolver.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/wepif/VaultResolver.java @@ -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