diff options
-rw-r--r-- | src/main/java/org/bukkit/World.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index f34b3a93..b6b90f39 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -475,6 +475,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 * * @param x X coordinate |