Skip to content

Commit

Permalink
feat(regions): add reloadRegion(id) method (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier authored Mar 30, 2024
1 parent b4be59f commit 76d93d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/minevalley/core/api/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,15 @@ public static Region createRegion(List<Area> included, List<Area> excluded) {
return server.createRegion(included, excluded);
}

/**
* Reload region with specific id from database
*
* @param id regions id
*/
public static void reloadRegion(int id) {
server.reloadRegion(id);
}

/**
* Gets the region in which this location lies in.
*
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/minevalley/core/api/CoreServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ public interface CoreServer {

Region createRegion(List<Area> included, List<Area> excluded);

void reloadRegion(int id);

List<Region> getRegions(Block block);

Residence getResidence(int id);
Expand Down

0 comments on commit 76d93d6

Please sign in to comment.