From e6583c0d4824f66ae75ab76e49c201e620b2b212 Mon Sep 17 00:00:00 2001 From: SpeaKeasY Date: Mon, 28 Feb 2011 20:21:27 -0600 Subject: [PATCH] Added method to set spawn location --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 6b68b9cc3e..b0f088b647 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; }