diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/OfflinePlayer.java | 9 | ||||
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/OfflinePlayer.java b/src/main/java/org/bukkit/OfflinePlayer.java index a59f8424..013dc0a2 100644 --- a/src/main/java/org/bukkit/OfflinePlayer.java +++ b/src/main/java/org/bukkit/OfflinePlayer.java @@ -84,4 +84,13 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio * @return True if the player has played before, otherwise false */ public boolean hasPlayedBefore(); + + /** + * Gets the Location where the player will spawn at their bed, null if they + * have not slept in one or their current bed spawn is invalid. + * + * @return Bed Spawn Location if bed exists, otherwise null. + */ + public Location getBedSpawnLocation(); + } diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 6b35240e..514ef14e 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -471,6 +471,13 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi public Location getBedSpawnLocation(); /** + * Sets the Location where the player will spawn at their bed. + * + * @param location where to set the respawn location + */ + public void setBedSpawnLocation(Location location); + + /** * Determines if the Player is allowed to fly via jump key double-tap like in creative mode. * * @return True if the player is allowed to fly. |