mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
Fix plot rating & mega plots + fix plot expiry analysis
This commit is contained in:
@ -285,6 +285,17 @@ public class Plot {
|
||||
return settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the plot is not merged, or it is the base plot of multiple merged plots
|
||||
* @return
|
||||
*/
|
||||
public boolean isBasePlot() {
|
||||
if (settings == null) {
|
||||
return true;
|
||||
}
|
||||
return !settings.getMerged(0) && !settings.getMerged(3);
|
||||
}
|
||||
|
||||
public boolean isMerged() {
|
||||
if (settings == null) {
|
||||
return false;
|
||||
|
@ -4,6 +4,7 @@ import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
@ -57,6 +58,10 @@ public class PlotAnalysis {
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<Integer> asList() {
|
||||
return Arrays.asList(changes, faces, data, air, variety, changes_sd, faces_sd, data_sd, air_sd, variety_sd);
|
||||
}
|
||||
|
||||
public int getComplexity() {
|
||||
if (complexity != 0) {
|
||||
return complexity;
|
||||
|
Reference in New Issue
Block a user