mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 05:54:43 +01:00
Added method to set spawn location
This commit is contained in:
parent
d142fabfc1
commit
e6583c0d48
1 changed files with 10 additions and 1 deletions
|
@ -69,6 +69,15 @@ public class CraftWorld implements World {
|
||||||
return new Location(this, spawn.a, world.e(spawn.a, spawn.c), spawn.c);
|
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) {
|
public Chunk getChunkAt(int x, int z) {
|
||||||
return this.provider.d(x,z).bukkitChunk;
|
return this.provider.d(x,z).bukkitChunk;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue