diff --git a/api/src/main/java/com/velocitypowered/api/event/player/ServerUpdateTabListEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/ServerUpdateTabListEvent.java index a10fd137c..236e0055e 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/ServerUpdateTabListEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/ServerUpdateTabListEvent.java @@ -18,7 +18,7 @@ import java.util.Set; import java.util.UUID; /** - * This event is fired, when a {@link com.velocitypowered.api.proxy.player.TabList Tablist} is updated. + * This event is fired, when a {@link com.velocitypowered.api.proxy.player.TabList Tablist} is updated by a {@link com.velocitypowered.api.proxy.ServerConnection server}. * It can be used to override or cancel updates for {@link TabListEntry}s. * Velocity will wait for this event to finish firing before forwarding it to the server. * diff --git a/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java b/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java index fba14e343..4b8821ee3 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/tablist/VelocityTabList.java @@ -456,7 +456,7 @@ public class VelocityTabList implements InternalTabList { Set.of(ServerUpdateTabListEvent.Action.REMOVE_PLAYER), Collections.unmodifiableList(entries) ) - ).thenAcceptAsync(event -> { //not sure what should be used here! + ).thenAcceptAsync(event -> { if (event.getResult().isAllowed()) { if (event.getResult().getIds().isEmpty()) { for (UUID uuid : infoPacket.getProfilesToRemove()) {