Home›Java›Mods›Fix Team Chat
A long-lasting issue with Bukkit is that the chat is reset after vanilla to add compatibility for plugins. This sounds fine, but the issue comes into play when you want to use the Vanilla Scoreboard Teams (now just known as Teams). Bukkit completely removes prefixes, colors, and suffixes for these teams. That's stupid!

So, to fix this issue, I've made this plugin. This plugin re-adds the vanilla formatting for scoreboard teams.

Due to how this plugin works, this will not work with any other chat formatting plugin. It resets your displayName and adds it just like how vanilla should be.

It's extremely lightweight (it's 10 lines of code), so it shouldn't bog down the server performance whatsoever. In fact, it's so lightweight, I'll post the source code right here!

Spoiler: Source Code
Code (Java):
@EventHandler
public void onPlayerChat (AsyncPlayerChatEvent event ) {
    if (event. getPlayer ( ) != null ) {
        Player player = event. getPlayer ( ) ;
        player. setDisplayName (player. getName ( ) ) ;
        Team team = player. getScoreboard ( ). getEntryTeam (player. getName ( ) ) ;
        if (team != null ) {
            String format = "<" + team. getPrefix ( ) ;
            format += team. getColor ( ) + "%s" ;
            format += ChatColor. RESET + team. getSuffix ( ) ;
            format += ChatColor. RESET + "> %s" ;
            event. setFormat (format ) ;
        }
    }
}

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Fix Team Chat is a free Minecraft Java mod. Compatible with Minecraft 1.14, 1.15, 1.16. Downloaded 8,910 times (via Spigot). Download it and open it directly in the game.

Explore more