Skip to content

Commit 6e06348

Browse files
committed
Callback message when user have't permissions added for /clear-chat command.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 152e730 commit 6e06348

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/commands/ClearChatCommand.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ object ClearChatCommand {
9898
}
9999
}
100100
}
101+
} else {
102+
sendMsg("chat", context.source, "chat.clear_restricted")
103+
return 0
101104
}
102105
}
103106
return 0

0 commit comments

Comments
 (0)