fix: tablist continuesly shows on tablist disabled server (#218)

This commit is contained in:
JerryLin 2024-10-02 04:39:44 +08:00 committed by GitHub
parent 3865387b80
commit 4f2fe1ef3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,7 @@ public class TabListListener {
// Get the group the player should now be in
final @NotNull Optional<Group> groupOptional = tabList.getGroup(serverName);
final boolean isDefault = groupOptional.map(g -> g.isDefault(plugin)).orElse(false);
final boolean isDefault = groupOptional.map(g -> g.isDefault(plugin)).orElse(true);
// Removes cached relational data of the joined player from all other players
plugin.getTabList().clearCachedData(joined);