mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Spawn: Simplify getting method, refactoring, add way of getting via API
This commit is contained in:
1 parent
f94f9e82db
commit
4db869abf1
6 files changed
+36
-20
No files matched your search
@@ -33,7 +33,7 @@ public class CachedSpawn {
|
||||
*
|
||||
* @return The {@link Position} of the spawn
|
||||
*/
|
||||
public Optional<Position> getLocation(@NotNull Server server) {
|
||||
public Optional<Position> getPosition(@NotNull Server server) {
|
||||
try {
|
||||
return Optional.of(new Position(x, y, z, yaw, pitch,
|
||||
new World(worldName, UUID.fromString(worldUuid)), server));
|
||||
|
||||
Reference in new issue
Block a user