Compare commits

..

5 Commits

Author SHA1 Message Date
renovate[bot]
764ac07452 Update dependency org.checkerframework:checker-qual to v3.51.1 (#4765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 04:15:03 +00:00
renovate[bot]
8b3a0050bc Update junit-framework monorepo (#4767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 03:15:08 +00:00
renovate[bot]
6830d0b6e5 Update dependency xyz.jpenilla.run-paper to v3.0.1 (#4766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 03:12:50 +00:00
renovate[bot]
59183c1412 Update dependency com.diffplug.spotless to v8 (#4763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 01:13:36 +00:00
renovate[bot]
439fb3a8ea Update dependency xyz.jpenilla.run-paper to v3 (#4764)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 01:11:55 +00:00
3 changed files with 9 additions and 14 deletions

View File

@@ -150,9 +150,8 @@ public class ListCmd extends SubCommand {
page = 0;
}
Plot currentPlot = player.getCurrentPlot();
String world = currentPlot != null ? currentPlot.getWorldName() : null;
PlotArea area = currentPlot != null ? currentPlot.getArea() : null;
String world = player.getCurrentPlot().getWorldName();
PlotArea area = player.getCurrentPlot().getArea();
String arg = args[0].toLowerCase();
final boolean[] sort = new boolean[]{true};
@@ -227,17 +226,13 @@ public class ListCmd extends SubCommand {
);
return false;
}
if (world != null && !player.hasPermission("plots.list.world." + world)) {
if (!player.hasPermission("plots.list.world." + world)) {
player.sendMessage(
TranslatableCaption.of("permission.no_permission"),
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))
);
return false;
}
if (world == null) {
player.sendMessage(TranslatableCaption.of("errors.not_in_plot_world"));
return false;
}
plotConsumer.accept(PlotQuery.newQuery().inWorld(world));
}
case "expired" -> {
@@ -262,7 +257,7 @@ public class ListCmd extends SubCommand {
);
return false;
}
if (world != null && !player.hasPermission("plots.list.world." + world)) {
if (!player.hasPermission("plots.list.world." + world)) {
player.sendMessage(
TranslatableCaption.of("permission.no_permission"),
TagResolver.resolver("node", Tag.inserting(Component.text("plots.list.world." + world)))

View File

@@ -67,8 +67,8 @@ subprojects {
dependencies {
// Tests
testImplementation("org.junit.jupiter:junit-jupiter:5.13.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.13.4")
testImplementation("org.junit.jupiter:junit-jupiter:5.14.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.14.0")
}
plugins.withId("java") {

View File

@@ -3,7 +3,7 @@
paper = "1.20.4-R0.1-SNAPSHOT"
guice = "7.0.0"
spotbugs = "4.9.6"
checkerqual = "3.51.0"
checkerqual = "3.51.1"
gson = "2.10"
guava = "31.1-jre"
snakeyaml = "2.0"
@@ -35,9 +35,9 @@ serverlib = "2.3.7"
# Gradle plugins
shadow = "8.3.9"
grgit = "4.1.1"
spotless = "7.2.1"
spotless = "8.0.0"
publish = "0.34.0"
runPaper = "2.3.1"
runPaper = "3.0.1"
[libraries]
# Platform expectations