summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCory Redmond <ace@ac3-servers.eu>2016-07-11 02:07:58 +0100
committermd_5 <git@md-5.net>2017-11-18 10:27:09 +1100
commit6198e695966d0552ccf57d3ab6dcae2e19813de4 (patch)
treeace1d9e80d1e0ffb39848db65e71a68574349321
parentdceaeb8e5f0abe7095262066c2bd9837dbafe61e (diff)
downloadbukkit-6198e695966d0552ccf57d3ab6dcae2e19813de4.tar
bukkit-6198e695966d0552ccf57d3ab6dcae2e19813de4.tar.gz
bukkit-6198e695966d0552ccf57d3ab6dcae2e19813de4.tar.lz
bukkit-6198e695966d0552ccf57d3ab6dcae2e19813de4.tar.xz
bukkit-6198e695966d0552ccf57d3ab6dcae2e19813de4.zip
Add setSpawnLocation(Location)
-rw-r--r--src/main/java/org/bukkit/World.java10
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