From b8a15385372ab6b21313c8d5f406d58f43034bf4 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 17 Jan 2022 10:11:47 +1100 Subject: [PATCH] SPIGOT-6899: Add Player#getPreviousGameMode By: Doc --- 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 f751c02cda..c5d88d5ce3 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -570,6 +570,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM @Deprecated public void updateInventory(); + /** + * Gets this player's previous {@link GameMode} + * + * @return Previous game mode or null + */ + @Nullable + public GameMode getPreviousGameMode(); + /** * Sets the current time on the player's client. When relative is true the * player's time will be kept synchronized to its world time with the