Skip to content

Commit

Permalink
Use offlineplayer permission resolution as we no longer need the work…
Browse files Browse the repository at this point in the history
…around.
  • Loading branch information
me4502 committed Mar 26, 2019
1 parent 0b51743 commit 08d4255
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,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;
Expand Down

0 comments on commit 08d4255

Please sign in to comment.