mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Rename some Settings getters
This commit is contained in:
1 parent
29cf3f9ffc
commit
34fdb88d5c
22 files changed
+44
-44
No files matched your search
@@ -147,7 +147,7 @@ public interface HuskHomes extends TaskRunner, EventDispatcher {
|
||||
* @return the {@link Position} of the spawn, or an empty {@link Optional} if it has not been set
|
||||
*/
|
||||
default Optional<Position> getSpawn() {
|
||||
return getSettings().isCrossServer() && getSettings().isGlobalSpawn()
|
||||
return getSettings().doCrossServer() && getSettings().isGlobalSpawn()
|
||||
? getDatabase().getWarp(getSettings().getGlobalSpawnName()).map(warp -> (Position) warp)
|
||||
: getLocalCachedSpawn().map(spawn -> spawn.getPosition(getServerName()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user