Update various dependencies

This commit is contained in:
chickeneer
2021-12-21 12:27:43 -06:00
parent 74cbf09190
commit 1124e8d431
6 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
<dependency>
<groupId>com.mojang</groupId>
<artifactId>brigadier</artifactId>
<version>1.0.17</version>
<version>1.0.18</version>
<scope>provided</scope>
</dependency>
</dependencies>
+1 -1
View File
@@ -32,7 +32,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.13-SNAPSHOT</version>
<version>1.18-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
@@ -65,7 +65,15 @@ public class BungeeCommandContexts extends CommandContexts<BungeeCommandExecutio
colors = colors.filter(color -> finalFilter.equals(ACFUtil.simplifyString(color.name())));
}
ChatColor match = ACFUtil.simpleMatch(ChatColor.class, first);
ChatColor match = null;
String simplified = ACFUtil.simplifyString(first);
for (ChatColor chatColor : ChatColor.values()) {
String simple = ACFUtil.simplifyString(chatColor.name());
if (simplified.equals(simple)) {
match = chatColor;
break;
}
}
if (match == null) {
String valid = colors
.map(color -> "<c2>" + ACFUtil.simplifyString(color.name()) + "</c2>")
+1 -1
View File
@@ -55,7 +55,7 @@
<dependency>
<groupId>net.jodah</groupId>
<artifactId>expiringmap</artifactId>
<version>0.5.9</version>
<version>0.5.10</version>
<scope>compile</scope>
</dependency>
</dependencies>
-6
View File
@@ -64,11 +64,5 @@
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-mojangapi</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
+7 -7
View File
@@ -32,9 +32,9 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.4.0</junit.version>
<junit.version>5.8.2</junit.version>
<junit.platform.version>1.4.0</junit.platform.version>
<mockito.version>2.25.1</mockito.version>
<mockito.version>4.1.0</mockito.version>
</properties>
<distributionManagement>
@@ -77,12 +77,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
@@ -95,7 +95,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
@@ -155,13 +155,13 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>15.0</version>
<version>31.0.1-jre</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>15.0</version>
<version>23.0.0</version>
<scope>provided</scope>
</dependency>