From cfd432886d6789a0bba34374de6904a3a2e2c5ed Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 11 Oct 2020 19:19:17 +0100 Subject: [PATCH 1/3] Correctly handle road flags --- .../com/plotsquared/core/plot/PlotArea.java | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java index 704068a3d..0076b27e2 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -374,24 +374,21 @@ public abstract class PlotArea { this.spawnCustom = config.getBoolean("event.spawn.custom"); this.spawnBreeding = config.getBoolean("event.spawn.breeding"); - List roadflags = config.getStringList("flags.default"); + List roadflags = config.getStringList("road.flags"); if (roadflags.isEmpty()) { - roadflags = config.getStringList("road.flags"); - if (roadflags.isEmpty()) { - roadflags = new ArrayList<>(); - ConfigurationSection section = config.getConfigurationSection("road.flags"); - Set keys = section.getKeys(false); - for (String key : keys) { - if (!"default".equals(key)) { - roadflags.add(key + ';' + section.get(key)); - } + roadflags = new ArrayList<>(); + ConfigurationSection section = config.getConfigurationSection("road.flags"); + Set keys = section.getKeys(false); + for (String key : keys) { + if (!"default".equals(key)) { + roadflags.add(key + ';' + section.get(key)); } } } this.getRoadFlagContainer().addAll(parseFlags(roadflags)); StringBuilder roadFlagBuilder = new StringBuilder(); - Collection> roadFlagCollection = this.getFlagContainer().getFlagMap().values(); + Collection> roadFlagCollection = this.getRoadFlagContainer().getFlagMap().values(); if (roadFlagCollection.isEmpty()) { roadFlagBuilder.append(Captions.NONE.getTranslated()); } else { From 565f9e3e2982d1ed0fa4392a75e4351f91c77755 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 11 Oct 2020 19:27:01 +0100 Subject: [PATCH 2/3] 5.13.8 --- Bukkit/pom.xml | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/pom.xml b/Bukkit/pom.xml index a9cf4c54f..2211b15d9 100644 --- a/Bukkit/pom.xml +++ b/Bukkit/pom.xml @@ -21,7 +21,7 @@ com.plotsquared PlotSquared-Core - 5.13.7 + 5.13.8 compile diff --git a/build.gradle b/build.gradle index 2f0fb1056..bd9095e3e 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ ext { git = Grgit.open(dir: new File(rootDir.toString() + "/.git")) } -def ver = "5.13.7" +def ver = "5.13.8" def versuffix = "" ext { if (project.hasProperty("versionsuffix")) { From 4213957d76b8d12ebea53a59010c25b8f1e881c7 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 12 Oct 2020 12:21:32 +0200 Subject: [PATCH 3/3] Delete dependabot.yml --- .github/dependabot.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 3fe9883e9..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,32 +0,0 @@ -version: 2 -updates: -- package-ecosystem: gradle - directory: "/" - schedule: - interval: weekly - open-pull-requests-limit: 10 - target-branch: v5 - ignore: - - dependency-name: com.google.guava:guava - versions: - - ">= 22.a" - - "< 23" - - dependency-name: com.google.guava:guava - versions: - - ">= 23.a" - - "< 24" - - dependency-name: com.squareup.okhttp3:okhttp - versions: - - "> 4.2.2" - - dependency-name: com.squareup.okio:okio - versions: - - "> 2.4.1" - - "< 3" - - dependency-name: com.squareup.retrofit2:retrofit - versions: - - "> 2.4.0" - - "< 3" - - dependency-name: net.kyori:text-adapter-bukkit - versions: - - "> 3.0.3" - - "< 3.1"