Skip to content

Commit

Permalink
add address object
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Mar 25, 2024
1 parent cfa3851 commit e1f0869
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/main/java/minevalley/core/api/regions/Address.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package minevalley.core.api.regions;

import org.bukkit.Location;

public interface Address {

String getName();

Location getLocation();
}
2 changes: 1 addition & 1 deletion src/main/java/minevalley/core/api/regions/Residence.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* <b>Note:</b> Plots may have been merged! Even if they are, every plot still consists of its residence.
* When dealing with plots, always take note of merged plots.
*/
public interface Residence extends PlayerLocation {
public interface Residence extends PlayerLocation, Address {

/**
* Each residence can be clearly identified by its ID. The Residences IDs are unique, regardless if it's a plot
Expand Down

0 comments on commit e1f0869

Please sign in to comment.