mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
SPIGOT-6899: Add Player#getPreviousGameMode
By: Doc <nachito94@msn.com>
This commit is contained in:
@@ -570,6 +570,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public void updateInventory();
|
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
|
* 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
|
* player's time will be kept synchronized to its world time with the
|
||||||
|
Reference in New Issue
Block a user