Skip to content

Commit de7f879

Browse files
committed
Incorrect coloring fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 42d0007 commit de7f879

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/EntryPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class EntryPoint : EssBase() {
119119
event.player.commandSource,
120120
"chat.muted",
121121
mutedBy,
122-
reason
122+
reason.replace(" ", " §7")
123123
)
124124
event.isCanceled = true
125125
return

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ object MuteCommand {
101101
"project_essentials_chat.notify_muted",
102102
player.name.string,
103103
context.playerName(),
104-
reason
104+
reason.replace(" ", " §c")
105105
)
106106
)
107107
}
@@ -111,7 +111,7 @@ object MuteCommand {
111111
player.commandSource,
112112
"chat.lol_youre_muted",
113113
context.playerName(),
114-
reason
114+
reason.replace(" ", " §7")
115115
)
116116
sendMsg(
117117
"chat",
@@ -151,7 +151,7 @@ object MuteCommand {
151151
"project_essentials_chat.notify_muted",
152152
playerName,
153153
context.playerName(),
154-
reason
154+
reason.replace(" ", " §c")
155155
)
156156
)
157157
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ object MutedPlayersCommand {
5454
if (mutedPlayers.isNotEmpty()) {
5555
mutedPlayers.forEach {
5656
val mutedBy = MuteAPI.getMuteInitiator(it)!!
57-
val reason = MuteAPI.getMuteReason(it)!!
57+
val reason = MuteAPI.getMuteReason(it)!!.replace(" ", " §c")
5858

5959
this.append(
6060
"§7 - §c$it§7, $locMessageMutedBy §c$mutedBy§7, $locMessageReason: §c$reason"

src/main/resources/assets/projectessentialschat/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"project_essentials_chat.chat.advertising_not_allowed": "§cMessage not sent, maybe it contains a link or advertisement.",
1111
"project_essentials_chat.chat.clear_restricted": "§cYou §7don't have permission §cto clear your chat.",
1212
"project_essentials_chat.chat.clear_other_restricted": "§cYou §7don't have permission §cto clear chat.",
13-
"project_essentials_chat.chat.muted": "§cYou muted in chat by §7%s §cwith reason §7%s§c.",
13+
"project_essentials_chat.chat.muted": "§cYou muted in chat by §7%s §cwith reason §7%s",
1414
"project_essentials_chat.chat.mute_restricted": "§cYou §7don't have permission §cto mute chat to anyone player.",
1515
"project_essentials_chat.chat.mute_failed_player_ignored": "§cPlayer to whom you tried to mute chat is in the ignore-list, which protects it from chat muting.",
1616
"project_essentials_chat.notify_muted": "§7§oPlayer §c%s §7§ohave been muted in chat by §c%s§7§o, with reason §c%s§7§o",

src/main/resources/assets/projectessentialschat/lang/ru_ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"project_essentials_chat.chat.advertising_not_allowed": "§cСообщение не отправлено, возможно оно содержит ссылку или рекламу.",
1111
"project_essentials_chat.chat.clear_restricted": "§cУ вас §7нет прав §cна очистку вашего чата.",
1212
"project_essentials_chat.chat.clear_other_restricted": "§cУ вас §7нет прав §cна очистку всего чата.",
13-
"project_essentials_chat.chat.muted": "§cВаш чат отключен от §7%s §cпо причине §7%s§c.",
13+
"project_essentials_chat.chat.muted": "§cВаш чат отключен от §7%s §cпо причине §7%s",
1414
"project_essentials_chat.chat.mute_restricted": "§cУ вас §7нет прав §cна отключение чата кому-либо.",
1515
"project_essentials_chat.chat.mute_failed_player_ignored": "§cИгрок которому вы попытались отключить чат находится в ignore-list, что защищает его от отключения чата.",
1616
"project_essentials_chat.notify_muted": "§7§oИгроку §c%s §7§oотключен чат от §c%s§7§o, по причине §c%s§7§o",

0 commit comments

Comments
 (0)