Several improvements and fixes for 1.20.2 (#1097)
* Send LoginAcknowledged immediately * Resend player list header/footer after backend server switched to config state * Fix clearHeaderAndFooter not clearing fields in ConnectedPlayer * Clear boss bars, header/footer, tab list when switching client to config state * Send client settings in config state
This commit is contained in:
@@ -31,7 +31,6 @@ import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.event.HoverEvent;
|
||||
import net.kyori.adventure.text.event.HoverEventSource;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -148,10 +147,17 @@ public interface Player extends
|
||||
/**
|
||||
* Clears the tab list header and footer for the player.
|
||||
*
|
||||
* @deprecated Use {@link TabList#clearHeaderAndFooter()}.
|
||||
* @deprecated Use {@link Player#clearPlayerListHeaderAndFooter()}.
|
||||
*/
|
||||
@Deprecated
|
||||
void clearHeaderAndFooter();
|
||||
default void clearHeaderAndFooter() {
|
||||
clearPlayerListHeaderAndFooter();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the player list header and footer.
|
||||
*/
|
||||
void clearPlayerListHeaderAndFooter();
|
||||
|
||||
/**
|
||||
* Returns the player's player list header.
|
||||
|
Reference in New Issue
Block a user