#956: Add method to get an offline player's location

By: Nothixal <nothixal@gmail.com>
This commit is contained in:
Bukkit/Spigot 2024-01-15 20:30:38 +11:00
parent abd7544014
commit a70e6187b4

View file

@ -425,4 +425,13 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
*/ */
@Nullable @Nullable
public Location getLastDeathLocation(); public Location getLastDeathLocation();
/**
* Gets the player's current location.
*
* @return the player's location, {@code null} if player hasn't ever played
* before.
*/
@Nullable
public Location getLocation();
} }