summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorSpeaKeasY <mekevin1917@gmail.com>2011-02-28 20:21:27 -0600
committerErik Broes <erikbroes@ripe.net>2011-03-01 10:39:26 +0100
commite6583c0d4824f66ae75ab76e49c201e620b2b212 (patch)
tree4996100ab8f6ea7b30b4ade48697ee51cfd6a1e6 /src/main/java/org
parentd142fabfc1d1c894a5f40dd5d516d928628dbade (diff)
downloadcraftbukkit-e6583c0d4824f66ae75ab76e49c201e620b2b212.tar
craftbukkit-e6583c0d4824f66ae75ab76e49c201e620b2b212.tar.gz
craftbukkit-e6583c0d4824f66ae75ab76e49c201e620b2b212.tar.lz
craftbukkit-e6583c0d4824f66ae75ab76e49c201e620b2b212.tar.xz
craftbukkit-e6583c0d4824f66ae75ab76e49c201e620b2b212.zip
Added method to set spawn location
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 6b68b9cc..b0f088b6 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -68,7 +68,16 @@ public class CraftWorld implements World {
ChunkCoordinates spawn = world.l();
return new Location(this, spawn.a, world.e(spawn.a, spawn.c), spawn.c);
}
-
+
+ public boolean setSpawnLocation(int x, int y, int z) {
+ try {
+ world.q.a(x, y, z);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
public Chunk getChunkAt(int x, int z) {
return this.provider.d(x,z).bukkitChunk;
}