From 0618087d5f31982468efe03481960e8803c519a8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 26 Nov 2021 10:13:40 +1100 Subject: [PATCH] #683: Add Player#showDemoScreen By: coll1234567 --- paper-api/src/main/java/org/bukkit/entity/Player.java | 8 ++++++++ 1 file changed, 8 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 7f1d1d9aef..347b4a784b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -1308,6 +1308,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM */ public void openBook(@NotNull ItemStack book); + /** + * Shows the demo screen to the player, this screen is normally only seen in + * the demo version of the game. + *
+ * Servers can modify the text on this screen using a resource pack. + */ + public void showDemoScreen(); + /** * Gets whether the player has the "Allow Server Listings" setting enabled. *