Vanilla sorting and display affects players in spectator mode. They are sorted to the bottom of tab, and have the grayed out name. An option to disable this and keep them sorted as Survival players would be awesome!
Simply adding .gameMode(0) to the tab list builder didn't work, unfortunately.
In PlayerTabList.java
@NotNull
private CompletableFuture<TabListEntry> createEntry(@NotNull TabPlayer player, @NotNull TabList tabList) {
return player.getDisplayName(plugin).thenApply(name -> TabListEntry.builder()
.profile(player.getPlayer().getGameProfile())
.displayName(name)
.latency(0)
.tabList(tabList)
+ .gameMode(0)
.build());
}
private TabListEntry createEntry(@NotNull TabPlayer player, @NotNull TabList tabList, @NotNull Component displayName) {
return TabListEntry.builder()
.profile(player.getPlayer().getGameProfile())
.displayName(displayName)
.latency(0)
.tabList(tabList)
+ .gameMode(0)
.build();
}