From 965095c0b924d07117a4abb933419fb1d6fa26e2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 11 Jul 2016 02:07:58 +0100 Subject: [PATCH] Add setSpawnLocation(Location) By: Cory Redmond --- paper-api/src/main/java/org/bukkit/World.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index f34b3a930f..b6b90f3926 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -474,6 +474,16 @@ public interface World extends PluginMessageRecipient, Metadatable { */ public Location getSpawnLocation(); + /** + * Sets the spawn location of the world. + *
+ * 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 *