mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
#956: Add method to get an offline player's location
By: Nothixal <nothixal@gmail.com>
This commit is contained in:
parent
abd7544014
commit
a70e6187b4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user