diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 11 |
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; } |