Skip to content

Commit

Permalink
Chat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
boiscljo committed Mar 29, 2022
1 parent ba429e5 commit b8b1c49
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ public void onPlayerChat(AsyncPlayerChatEvent event) {
}

var colorName = game.getTeamOfPlayer(player).getColor().name().toUpperCase();
var teamName = game.getTeamOfPlayer(player).getName();
var color = TeamColor.fromApiColor(game.getTeamOfPlayer(player).getColor()).chatColor.toString();
format = format
.replace("%color%", color)
.replace("%team%", colorName);
.replace("%color_name%", colorName)
.replace("%team%", teamName);
}

var message = event.getMessage().replace(allChatPrefix, "");
Expand Down

0 comments on commit b8b1c49

Please sign in to comment.