3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

fix: clarify that the event is not fired on proxy updates

+ cleanup
Dieser Commit ist enthalten in:
Timongcraft 2024-09-20 18:25:06 +02:00
Ursprung ce18534ce2
Commit 69369ae512
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 58C9C6C8E8E9E384
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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.
*

Datei anzeigen

@ -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()) {