Add /setspawn and /spawn

This commit is contained in:
William committed 2022-08-22 16:41:22 +01:00
1 parent 560d701113
commit 8adbc49a61
10 files changed
+198 -17

No files matched your search

@@ -2,6 +2,7 @@ package net.william278.huskhomes;
import net.william278.huskhomes.config.Locales;
import net.william278.huskhomes.config.Settings;
import net.william278.huskhomes.config.Spawn;
import net.william278.huskhomes.database.Database;
import net.william278.huskhomes.hook.EconomyHook;
import net.william278.huskhomes.hook.PluginHook;
@@ -129,6 +130,20 @@ public interface HuskHomes {
@NotNull
RtpEngine getRtpEngine();
/**
* The {@link Spawn} location of this server
*
* @return the {@link Spawn} location data
*/
Optional<Spawn> getSpawn();
/**
* Update the {@link Spawn} position to a location on the server
*
* @param location the new {@link Spawn} location
*/
void setSpawn(@NotNull Location location);
/**
* Set of active {@link PluginHook}s running on the server
*