From 4f2fe1ef3fefc9d0e43d871ae797497eb9a641e9 Mon Sep 17 00:00:00 2001 From: JerryLin <41278925+lulu2002@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:39:44 +0800 Subject: [PATCH] fix: tablist continuesly shows on tablist disabled server (#218) --- src/main/java/net/william278/velocitab/tab/TabListListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/william278/velocitab/tab/TabListListener.java b/src/main/java/net/william278/velocitab/tab/TabListListener.java index 083e263..abf9a35 100644 --- a/src/main/java/net/william278/velocitab/tab/TabListListener.java +++ b/src/main/java/net/william278/velocitab/tab/TabListListener.java @@ -93,7 +93,7 @@ public class TabListListener { // Get the group the player should now be in final @NotNull Optional 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);