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:
Ursprung
ce18534ce2
Commit
69369ae512
@ -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.
|
||||
*
|
||||
|
@ -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()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren