Expose setBedSpawnLocation with force option. Adds BUKKIT-2709

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot 2012-10-29 03:47:51 -04:00
parent 1b0c7f2c90
commit 78183f63cf

View File

@ -479,6 +479,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.
*