Archiviert
13
0

Added method to set spawn location

Dieser Commit ist enthalten in:
SpeaKeasY 2011-02-28 20:21:27 -06:00 committet von Erik Broes
Ursprung d142fabfc1
Commit e6583c0d48

Datei anzeigen

@ -69,6 +69,15 @@ public class CraftWorld implements World {
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;
}