mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
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:
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user