Skip to content

Commit

Permalink
Fix channel permission checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Draycia committed Jan 14, 2025
1 parent d6f3f9a commit 8153653
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ private void registerChannelCommands(final ChatChannel channel) {

if (!channel.permissions().dynamic()) {
builder = builder.permission(PredicatePermission.of(sender -> {
if (!(sender instanceof CarbonPlayer player)) {
if (!(sender instanceof PlayerCommander player)) {
return true;
}
return channel.permissions().joinPermitted(player).permitted();
return channel.permissions().joinPermitted(player.carbonPlayer()).permitted();
}));
}

Expand Down

0 comments on commit 8153653

Please sign in to comment.