Add config option to disable tab list updates (#488)

* Add option to disable tab list updating

Currently only works for paper, but it's possible to update tab list names on velocity and fabric

* Add docs to tablist config option
This commit is contained in:
Josua Parks authored and GitHub committed 2024-06-11 19:25:55 -07:00
1 parent 3a7beff802
commit c3eeebc6a3
2 files changed
+12 -1

No files matched your search

@@ -116,7 +116,10 @@ public final class CarbonPlayerPaper extends WrappedCarbonPlayer implements Forw
private Consumer<Player> applyDisplayNameToBukkit(final @Nullable Component displayName) {
return bukkit -> this.carbonPlayerCommon.schedule(() -> {
bukkit.displayName(displayName);
bukkit.playerListName(displayName);
if (this.carbonPlayerCommon.configManager().primaryConfig().nickname().updateTabList()) {
bukkit.playerListName(displayName);
}
});
}