Per player plot cluster limits

This commit is contained in:
boy0001
2015-08-28 16:28:55 +10:00
parent 22997ac089
commit 1e8bdb17f8
6 changed files with 70 additions and 3 deletions

View File

@ -49,6 +49,14 @@ public class PlotCluster {
public String getName() {
return this.settings.getAlias();
}
/**
* Get the area (in plots)
* @return
*/
public int getArea() {
return (1 + pos2.x - pos1.x) * (1 + pos2.y - pos1.y);
}
@Override
public int hashCode() {