From 2960fc06e5fc236f65b846d78a894e80559fbce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Dasc=C4=83lu?= Date: Sun, 18 Dec 2022 22:34:38 +0100 Subject: [PATCH] fix tab group not working properly --- .../java/com/andrei1058/spigot/sidebar/WrappedSidebar.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sidebar-base/src/main/java/com/andrei1058/spigot/sidebar/WrappedSidebar.java b/sidebar-base/src/main/java/com/andrei1058/spigot/sidebar/WrappedSidebar.java index 8e5121c..1786522 100644 --- a/sidebar-base/src/main/java/com/andrei1058/spigot/sidebar/WrappedSidebar.java +++ b/sidebar-base/src/main/java/com/andrei1058/spigot/sidebar/WrappedSidebar.java @@ -267,8 +267,10 @@ public PlayerTab playerTabCreate(String identifier, @Nullable Player player, Sid VersionedTabGroup tab = SidebarManager.getInstance().getSidebarProvider().createPlayerTab( this, identifier, prefix, suffix, pushingRule, PlayerTab.NameTagVisibility.ALWAYS ); + // send tab create to sidebar receivers + getReceivers().forEach(tab::sendCreateToPlayer); if (null != player){ - tab.sendCreateToPlayer(player); + // add entity to tab team tab.sendUserCreateToReceivers(player); } tabView.add(tab);