mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +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
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue