Skip to content

Commit

Permalink
PlotPlayer works, we gucci
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfiguz7 authored and WalshyDev committed Mar 20, 2024
1 parent c3e903b commit b5f3e96
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ private boolean check(OfflinePlayer p, Interaction action) {

switch (action) {
case INTERACT_BLOCK:
return BukkitUtil.adapt((Player) player).hasPermission(Permission.PERMISSION_ADMIN_INTERACT_UNOWNED);
return player.hasPermission(Permission.PERMISSION_ADMIN_INTERACT_UNOWNED);
case ATTACK_PLAYER:
return BukkitUtil.adapt((Player) player).hasPermission(Permission.PERMISSION_ADMIN_PVP);
return player.hasPermission(Permission.PERMISSION_ADMIN_PVP);
case PLACE_BLOCK:
default:
return BukkitUtil.adapt((Player) player).hasPermission(Permission.PERMISSION_ADMIN_BUILD_UNOWNED);
return player.hasPermission(Permission.PERMISSION_ADMIN_BUILD_UNOWNED);
}
}
}

0 comments on commit b5f3e96

Please sign in to comment.