mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
Add setSpawnLocation(Location)
By: Cory Redmond <ace@ac3-servers.eu>
This commit is contained in:
parent
d38d7b23c9
commit
965095c0b9
1 changed files with 10 additions and 0 deletions
|
@ -474,6 +474,16 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|||
*/
|
||||
public Location getSpawnLocation();
|
||||
|
||||
/**
|
||||
* Sets the spawn location of the world.
|
||||
* <br>
|
||||
* The location provided must be equal to this world.
|
||||
*
|
||||
* @param location The {@link Location} to set the spawn for this world at.
|
||||
* @return True if it was successfully set.
|
||||
*/
|
||||
public boolean setSpawnLocation(Location location);
|
||||
|
||||
/**
|
||||
* Sets the spawn location of the world
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue