mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fixed plot list
This commit is contained in:
parent
8e240b5274
commit
b77b615dd4
17
pom.xml
17
pom.xml
@ -12,7 +12,7 @@
|
|||||||
<name>PlotSquared</name>
|
<name>PlotSquared</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<build>
|
<build>
|
||||||
<finalName>PlotSquared</finalName>
|
<finalName>PlotSquared-Uber</finalName>
|
||||||
<sourceDirectory>src/main/java</sourceDirectory>
|
<sourceDirectory>src/main/java</sourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
@ -67,6 +67,21 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>api</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<finalName>PlotSquared-Null</finalName>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/com/plotsquared/bukkit/**</exclude>
|
||||||
|
<exclude>**/com/plotsquared/sponge/**</exclude>
|
||||||
|
<exclude>**/com/intellectualcrafters/plot/api/*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -538,7 +538,7 @@ public class PS {
|
|||||||
List<Plot> overflow = new ArrayList<Plot>(overflowSize);
|
List<Plot> overflow = new ArrayList<Plot>(overflowSize);
|
||||||
for (Plot plot : plots) {
|
for (Plot plot : plots) {
|
||||||
int hash = MathMan.getPositiveId(plot.hashCode());
|
int hash = MathMan.getPositiveId(plot.hashCode());
|
||||||
if (hash < hardmax) {
|
if (hash < hardmax && hash > -1) {
|
||||||
cache[hash] = plot;
|
cache[hash] = plot;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -304,7 +304,7 @@ public class list extends SubCommand {
|
|||||||
|
|
||||||
public void displayPlots(PlotPlayer player, List<Plot> plots, int pageSize, int page, String world, String[] args, boolean sort) {
|
public void displayPlots(PlotPlayer player, List<Plot> plots, int pageSize, int page, String world, String[] args, boolean sort) {
|
||||||
if (sort) {
|
if (sort) {
|
||||||
plots = PS.get().sortPlots(plots, SortType.CREATION_DATE, world);
|
plots = PS.get().sortPlots(plots, SortType.DISTANCE_FROM_ORIGIN, world);
|
||||||
}
|
}
|
||||||
if (page < 0) {
|
if (page < 0) {
|
||||||
page = 0;
|
page = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user