From a70e6187b4b9e1fa46dea196d01ef18eb0fb2d70 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 15 Jan 2024 20:30:38 +1100 Subject: [PATCH] #956: Add method to get an offline player's location By: Nothixal --- paper-api/src/main/java/org/bukkit/OfflinePlayer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java index bec480aff8..1def623ad3 100644 --- a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java +++ b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java @@ -425,4 +425,13 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio */ @Nullable 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(); }