From 6198e695966d0552ccf57d3ab6dcae2e19813de4 Mon Sep 17 00:00:00 2001 From: Cory Redmond Date: Mon, 11 Jul 2016 02:07:58 +0100 Subject: Add setSpawnLocation(Location) --- src/main/java/org/bukkit/World.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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 @@ -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 * -- cgit v1.2.3