mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +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
@@ -196,6 +196,16 @@ public abstract class BaseHuskHomesAPI {
|
||||
return plugin.getDatabase().getWarp(warpUuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the canonical {@link Position} of the spawn point. Note that if cross-server and global spawn
|
||||
* are enabled in the config, this may not return a position on this server.
|
||||
*
|
||||
* @return A {@link CompletableFuture} that will complete with the {@link Position} of the spawn point
|
||||
*/
|
||||
public final CompletableFuture<Optional<? extends Position>> getSpawn() {
|
||||
return CompletableFuture.supplyAsync(plugin::getSpawn);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the {@link PositionMeta} of a {@link Home}
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user