Skip to content

Commit a0738aa

Browse files
committed
TeamVariable.kt improved.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 28a4c38 commit a0738aa

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/chat/impl/variables

1 file changed

+2
-2
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/impl/variables/TeamVariable.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ object TeamVariable : IChatVariable {
1010
override fun process(player: ServerPlayerEntity) =
1111
{ player.team?.color ?: TextFormatting.RESET }.let {
1212
if (it() == TextFormatting.RESET) {
13-
return@let TextComponentUtils.toTextComponent { player.team!!.name }.formattedText
13+
return@let TextComponentUtils.toTextComponent { player.team!!.name }
1414
}
1515
return@let TextComponentUtils.toTextComponent {
1616
player.team!!.name
17-
}.applyTextStyle(player.team!!.color).formattedText
17+
}.applyTextStyle(player.team!!.color)
1818
}!!
1919
}

0 commit comments

Comments
 (0)