diff --git a/api/build.gradle b/api/build.gradle index 7eca5c59d..8361c827e 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -41,7 +41,7 @@ dependencies { api "org.slf4j:slf4j-api:${slf4jVersion}" api 'com.google.inject:guice:4.2.3' api "org.checkerframework:checker-qual:${checkerFrameworkVersion}" - api 'com.mojang:brigadier:1.0.17' + api 'com.velocitypowered:velocity-brigadier:1.0.0-SNAPSHOT' api "org.spongepowered:configurate-hocon:${configurateVersion}" api "org.spongepowered:configurate-yaml:${configurateVersion}" diff --git a/build.gradle b/build.gradle index f3572eff8..7a1b37c86 100644 --- a/build.gradle +++ b/build.gradle @@ -52,9 +52,9 @@ allprojects { url 'https://oss.sonatype.org/content/groups/public/' } - // Brigadier + // Velocity repo maven { - url "https://libraries.minecraft.net" + url "https://nexus.velocitypowered.com/repository/maven-public/" } } diff --git a/proxy/src/test/java/com/velocitypowered/proxy/command/CommandManagerTests.java b/proxy/src/test/java/com/velocitypowered/proxy/command/CommandManagerTests.java index c97f6dc51..ef2bf022f 100644 --- a/proxy/src/test/java/com/velocitypowered/proxy/command/CommandManagerTests.java +++ b/proxy/src/test/java/com/velocitypowered/proxy/command/CommandManagerTests.java @@ -94,6 +94,7 @@ public class CommandManagerTests { assertTrue(manager.hasCommand("foO")); manager.unregister("fOo"); assertFalse(manager.hasCommand("foo")); + assertFalse(manager.execute(MockCommandSource.INSTANCE, "foo")); manager.register("foo", command, "bAr", "BAZ"); assertTrue(manager.hasCommand("bar"));