Skip to content

Commit 49ff1e1

Browse files
committed
Wrong property notify checking in UnmuteCommand.kt.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent c7b473d commit 49ff1e1

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@ object UnmuteCommand {
6060
if (player != null) {
6161
if (MuteAPI.unmutePlayer(player.name.string)) {
6262
if (ChatModelUtils.chatModel.mute.notifyAllAboutUnmute) {
63-
if (ChatModelUtils.chatModel.mute.notifyAllAboutMute) {
64-
context.source.server.playerList.sendMessage(
65-
TranslationTextComponent(
66-
"project_essentials_chat.notify_unmuted",
67-
player.name.string,
68-
context.playerName()
69-
)
63+
context.source.server.playerList.sendMessage(
64+
TranslationTextComponent(
65+
"project_essentials_chat.notify_unmuted",
66+
player.name.string,
67+
context.playerName()
7068
)
71-
}
69+
)
7270
}
7371

7472
sendMsg(
@@ -93,7 +91,7 @@ object UnmuteCommand {
9391
}
9492
} else if (playerName != null) {
9593
if (MuteAPI.unmutePlayer(playerName)) {
96-
if (ChatModelUtils.chatModel.mute.notifyAllAboutMute) {
94+
if (ChatModelUtils.chatModel.mute.notifyAllAboutUnmute) {
9795
context.source.server.playerList.sendMessage(
9896
TranslationTextComponent(
9997
"project_essentials_chat.notify_unmuted",

0 commit comments

Comments
 (0)