feat: actually set the world spawn on /setspawn, close #622

This commit is contained in:
William committed 2024-05-30 01:12:05 +01:00
1 parent 386ea57bbb
commit b555b43968
8 files changed
+48 -7

No files matched your search

@@ -161,6 +161,13 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SafetyResolve
: getServerSpawn().map(spawn -> spawn.getPosition(getServerName()));
}
/**
* Update the spawn position of a world on the server.
*
* @param position The new spawn world and coordinates.
*/
void setWorldSpawn(@NotNull Position position);
/**
* Returns the {@link Server} the plugin is on.
*