Skip to content

Commit

Permalink
Fix chat disable not being enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
RappyTV committed Nov 6, 2024
1 parent f2cf41c commit 0d8543e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void onChat(AsyncChatEvent event) {
event.setCancelled(true);
return;
}
if(!ChatCommand.isEnabled() && !player.hasPermission("simplechat.chat.manage.toggle.bypass")) {
if(!ChatCommand.isEnabled() && !player.hasPermission("simplechat.manage.chat.toggle.bypass")) {
player.sendMessage(ChatCommand.deserializeTranslatable(player, "simplechat.listener.chat_disabled"));
event.setCancelled(true);
return;
Expand Down

0 comments on commit 0d8543e

Please sign in to comment.