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!
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 ) ;
}
}
}
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 ) ;
}
}
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.14, 1.15, 1.16
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.