diff options
author | EvilSeph <evilseph@gmail.com> | 2012-10-29 03:47:51 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-29 04:58:51 -0400 |
commit | 8d77e844f7558b013b368e4dbf91e063447ce9c0 (patch) | |
tree | d8fc676ec71a222b494dc8926a4a3e323cd0821d /src/main | |
parent | 8cc80425f0484b90e75efdfd4c0bd0583dd95110 (diff) | |
download | bukkit-8d77e844f7558b013b368e4dbf91e063447ce9c0.tar bukkit-8d77e844f7558b013b368e4dbf91e063447ce9c0.tar.gz bukkit-8d77e844f7558b013b368e4dbf91e063447ce9c0.tar.lz bukkit-8d77e844f7558b013b368e4dbf91e063447ce9c0.tar.xz bukkit-8d77e844f7558b013b368e4dbf91e063447ce9c0.zip |
Expose setBedSpawnLocation with force option. Adds BUKKIT-2709
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 484627e7..7f667f6c 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -480,6 +480,14 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline public void setBedSpawnLocation(Location location); /** + * Sets the Location where the player will spawn at their bed. + * + * @param location where to set the respawn location + * @param force whether to forcefully set the respawn location even if a valid bed is not present + */ + public void setBedSpawnLocation(Location location, boolean force); + + /** * 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. |