mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
#956: Add method to get an offline player's location
By: Nothixal <nothixal@gmail.com>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user