Skip to content
Permalink
Browse files

Use offlineplayer permission resolution as we no longer need the work…

…around.
  • Loading branch information...
me4502 committed Mar 26, 2019
1 parent 0b51743 commit 08d4255199d01b904a6e4edf2b9b2d031cd6ec66
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/bukkit/CraftBookPlugin.java
@@ -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;

0 comments on commit 08d4255

Please sign in to comment.
You can’t perform that action at this time.