Skip to content

Commit

Permalink
feat(api): Add ResidenceListAPI#setStorage(DataStorage<?,?>).
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Feb 4, 2024
1 parent f84ca3d commit 1906ce2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public class ResidenceListAPI {
private ResidenceListAPI() {
}

public static ResidenceListPlugin plugin() {
return plugin;
}

public static void openGUI(Player player, @Nullable String owner) {
plugin.openGUI(player, owner);
}
Expand All @@ -52,6 +56,10 @@ public static void openGUI(Player player, @Nullable String owner) {
return plugin.getStorage();
}

public void setStorage(@NotNull DataStorage<?, ?> storage) {
plugin.setStorage(storage);
}

public static ResidenceManager<?> getResidenceManager() {
return plugin.getResidenceManager();
}
Expand Down

0 comments on commit 1906ce2

Please sign in to comment.