From 6400a40fb2c81c5fa0fa1cd686a5458a4ac5a50f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 29 Jul 2018 21:29:46 +1000 Subject: [PATCH] SPIGOT-1714: Draft API for player list header / footer By: md_5 --- .../main/java/org/bukkit/entity/Player.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 2596a11d3b..088b2163fa 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -84,6 +84,53 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline */ public void setPlayerListName(String name); + /** + * Gets the currently displayed player list header for this player. + * + * @return player list header or null + * @deprecated draft API + */ + @Deprecated + public String getPlayerListHeader(); + + /** + * Gets the currently displayed player list footer for this player. + * + * @return player list header or null + * @deprecated draft API + */ + @Deprecated + public String getPlayerListFooter(); + + /** + * Sets the currently displayed player list header for this player. + * + * @param header player list header, null for empty + * @deprecated draft API + */ + @Deprecated + public void setPlayerListHeader(String header); + + /** + * Sets the currently displayed player list footer for this player. + * + * @param footer player list footer, null for empty + * @deprecated draft API + */ + @Deprecated + public void setPlayerListFooter(String footer); + + /** + * Sets the currently displayed player list header and footer for this + * player. + * + * @param header player list header, null for empty + * @param footer player list footer, null for empty + * @deprecated draft API + */ + @Deprecated + public void setPlayerListHeaderFooter(String header, String footer); + /** * Set the target of the player's compass. *