Some more encapsulation

This commit is contained in:
Daniil Z committed 2021-03-01 21:05:59 +03:00
1 parent afafcee2bb
commit 45f99cacf6
8 files changed
+33 -17

No files matched your search

@@ -136,12 +136,12 @@ public class SettingHandler {
plugin.saveConfig();
// Update the current spawn location
TeleportManager.spawnLocation = new TeleportationPoint(location, HuskHomes.getSettings().getServerID());
TeleportManager.setSpawnLocation(new TeleportationPoint(location, HuskHomes.getSettings().getServerID()));
}
// Update current spawn location from config
public static void fetchSpawnLocation() {
TeleportManager.spawnLocation = getSpawnLocation();
TeleportManager.setSpawnLocation(getSpawnLocation());
}
// Get spawn location from config