Skip to content

Commit

Permalink
Fix first blood messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeberrex committed Mar 21, 2024
1 parent d394d45 commit 3c1ea9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import tc.oc.pgm.api.player.event.MatchPlayerDeathEvent
import tc.oc.pgm.events.PlayerJoinPartyEvent
import tc.oc.pgm.events.PlayerLeavePartyEvent
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.Component.text
import net.kyori.adventure.text.format.NamedTextColor
import network.warzone.mars.Mars
import tc.oc.pgm.util.named.NameStyle
Expand Down Expand Up @@ -96,7 +97,7 @@ class PlayerTracker : Listener {
if (event.isEnemyKill) {
pendingFirstBlood = false
event.match.sendMessage(
killer.getName(NameStyle.COLOR).append(Component.text(" drew first blood!", NamedTextColor.RED))
text().append(killer.getName(NameStyle.COLOR)).append(Component.text(" drew first blood!", NamedTextColor.RED))
)
}
}
Expand Down

0 comments on commit 3c1ea9f

Please sign in to comment.