mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix channel permission checks
This commit is contained in:
1 parent
d6f3f9a633
commit
8153653983
1 file changed
+2
-2
@@ -367,10 +367,10 @@ public class CarbonChannelRegistry extends ChatListenerInternal implements Chann
|
||||
|
||||
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();
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user