mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-09-27 06:49:09 +02:00
Compare commits
1 Commits
copilot/fi
...
fix/binary
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3c1d1d5aba |
@@ -150,9 +150,8 @@ public class ListCmd extends SubCommand {
|
|||||||
page = 0;
|
page = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Plot currentPlot = player.getCurrentPlot();
|
String world = player.getCurrentPlot().getWorldName();
|
||||||
String world = currentPlot != null ? currentPlot.getWorldName() : null;
|
PlotArea area = player.getCurrentPlot().getArea();
|
||||||
PlotArea area = currentPlot != null ? currentPlot.getArea() : null;
|
|
||||||
String arg = args[0].toLowerCase();
|
String arg = args[0].toLowerCase();
|
||||||
final boolean[] sort = new boolean[]{true};
|
final boolean[] sort = new boolean[]{true};
|
||||||
|
|
||||||
@@ -227,17 +226,13 @@ public class ListCmd extends SubCommand {
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (world != null && !player.hasPermission("plots.list.world." + world)) {
|
if (!player.hasPermission("plots.list.world." + world)) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("permission.no_permission"),
|
TranslatableCaption.of("permission.no_permission"),
|
||||||
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))
|
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (world == null) {
|
|
||||||
player.sendMessage(TranslatableCaption.of("errors.not_in_plot_world"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
plotConsumer.accept(PlotQuery.newQuery().inWorld(world));
|
plotConsumer.accept(PlotQuery.newQuery().inWorld(world));
|
||||||
}
|
}
|
||||||
case "expired" -> {
|
case "expired" -> {
|
||||||
@@ -262,7 +257,7 @@ public class ListCmd extends SubCommand {
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (world != null && !player.hasPermission("plots.list.world." + world)) {
|
if (!player.hasPermission("plots.list.world." + world)) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("permission.no_permission"),
|
TranslatableCaption.of("permission.no_permission"),
|
||||||
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))
|
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))
|
||||||
|
@@ -20,7 +20,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "com.intellectualsites.plotsquared"
|
group = "com.intellectualsites.plotsquared"
|
||||||
version = "7.5.9-SNAPSHOT"
|
version = "7.5.8-SNAPSHOT"
|
||||||
|
|
||||||
if (!File("$rootDir/.git").exists()) {
|
if (!File("$rootDir/.git").exists()) {
|
||||||
logger.lifecycle("""
|
logger.lifecycle("""
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# Platform expectations
|
# Platform expectations
|
||||||
paper = "1.20.4-R0.1-SNAPSHOT"
|
paper = "1.20.4-R0.1-SNAPSHOT"
|
||||||
guice = "7.0.0"
|
guice = "7.0.0"
|
||||||
spotbugs = "4.9.6"
|
spotbugs = "4.9.4"
|
||||||
checkerqual = "3.51.0"
|
checkerqual = "3.51.0"
|
||||||
gson = "2.10"
|
gson = "2.10"
|
||||||
guava = "31.1-jre"
|
guava = "31.1-jre"
|
||||||
|
Reference in New Issue
Block a user