Commits

Nothixal authored and md_5 committed 4054cc7b855
#956: Add method to get an offline player's location
No tags

src/main/java/org/bukkit/OfflinePlayer.java

Modified
418 418 */
419 419 public void setStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int newValue);
420 420
421 421 /**
422 422 * Gets the player's last death location.
423 423 *
424 424 * @return the last death location if it exists, otherwise null.
425 425 */
426 426 @Nullable
427 427 public Location getLastDeathLocation();
428 +
429 + /**
430 + * Gets the player's current location.
431 + *
432 + * @return the player's location, {@code null} if player hasn't ever played
433 + * before.
434 + */
435 + @Nullable
436 + public Location getLocation();
428 437 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut