New API methods, refactor position object to use static creators

This commit is contained in:
William278 committed 2023-03-22 19:55:59 +00:00
1 parent 42adc13425
commit 6b8c515b61
42 files changed
+587 -232

No files matched your search

@@ -150,7 +150,7 @@ public class HomesManager {
existing.update(position);
return existing;
})
.orElse(new Home(position, new PositionMeta(name, ""), owner));
.orElse(Home.from(position, PositionMeta.create(name, ""), owner));
plugin.getDatabase().saveHome(home);
this.cacheHome(home, true);
}