Skip to content

Commit

Permalink
* Fixed Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jul 11, 2022
1 parent f2cc249 commit 8b3041d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/presti/ree6/events/OtherEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void onMessageReceived(@NotNull MessageReceivedEvent event) {
if (ChatProtector.isChatProtectorSetup(event.getGuild().getId()) &&
ChatProtector.checkMessage(event.getGuild().getId(), event.getMessage().getContentRaw())) {
Main.getInstance().getCommandManager().deleteMessage(event.getMessage(), null);
event.getChannel().sendMessage("You can't write that!").queue();
Main.getInstance().getCommandManager().sendMessage("You can't write that!", event.getTextChannel(), null);
return;
}

Expand Down

0 comments on commit 8b3041d

Please sign in to comment.