mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Added a way to get the spawn position of a world
This commit is contained in:
committed by
IronApollo
parent
c935e381b7
commit
9c3964d330
@ -321,6 +321,11 @@ public abstract class SpongeWorld extends AbstractWorld {
|
||||
getWorld().setWeather(Sponge.getRegistry().getType(Weather.class, weatherType.getId()).get(), duration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockVector3 getSpawnPosition() {
|
||||
return SpongeAdapter.asBlockVector(getWorld().getSpawnLocation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Thrown when the reference to the world is lost.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user