CommandAPI/src/main/java/nl/iobyte/commandapi/worldguard/WGRegionCompare.java
2021-01-21 22:08:36 +01:00

19 lines
No EOL
478 B
Java

package nl.iobyte.commandapi.worldguard;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import java.util.Comparator;
public class WGRegionCompare implements Comparator<ProtectedRegion> {
@Override
public int compare(ProtectedRegion o1, ProtectedRegion o2) {
if (o1.getPriority() == o2.getPriority()) {
return 0;
} else if (o1.getPriority() < o2.getPriority()) {
return 1;
}
return -1;
}
}