diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 2740672e..e33cc297 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -462,7 +462,7 @@ public boolean hasPermission(CommandSender sender, String perm) { // Invoke the permissions resolver if (sender instanceof Player) { Player player = (Player) sender; - return PermissionsResolverManager.getInstance().hasPermission(player.getWorld().getName(), player.getName(), perm); + return PermissionsResolverManager.getInstance().hasPermission(player.getWorld().getName(), player, perm); } return false;