From 57e7e952153bdabb61fdadab76d38247c7e36a64 Mon Sep 17 00:00:00 2001 From: coll1234567 Date: Fri, 26 Nov 2021 10:13:40 +1100 Subject: [PATCH] #683: Add Player#showDemoScreen --- src/main/java/org/bukkit/entity/Player.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 7f1d1d9a..347b4a78 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/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. *