Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Switch to our internal Brigadier fork
Dieser Commit ist enthalten in:
Ursprung
44f872eea4
Commit
511165415d
@ -41,7 +41,7 @@ dependencies {
|
|||||||
api "org.slf4j:slf4j-api:${slf4jVersion}"
|
api "org.slf4j:slf4j-api:${slf4jVersion}"
|
||||||
api 'com.google.inject:guice:4.2.3'
|
api 'com.google.inject:guice:4.2.3'
|
||||||
api "org.checkerframework:checker-qual:${checkerFrameworkVersion}"
|
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-hocon:${configurateVersion}"
|
||||||
api "org.spongepowered:configurate-yaml:${configurateVersion}"
|
api "org.spongepowered:configurate-yaml:${configurateVersion}"
|
||||||
|
@ -52,9 +52,9 @@ allprojects {
|
|||||||
url 'https://oss.sonatype.org/content/groups/public/'
|
url 'https://oss.sonatype.org/content/groups/public/'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Brigadier
|
// Velocity repo
|
||||||
maven {
|
maven {
|
||||||
url "https://libraries.minecraft.net"
|
url "https://nexus.velocitypowered.com/repository/maven-public/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ public class CommandManagerTests {
|
|||||||
assertTrue(manager.hasCommand("foO"));
|
assertTrue(manager.hasCommand("foO"));
|
||||||
manager.unregister("fOo");
|
manager.unregister("fOo");
|
||||||
assertFalse(manager.hasCommand("foo"));
|
assertFalse(manager.hasCommand("foo"));
|
||||||
|
assertFalse(manager.execute(MockCommandSource.INSTANCE, "foo"));
|
||||||
|
|
||||||
manager.register("foo", command, "bAr", "BAZ");
|
manager.register("foo", command, "bAr", "BAZ");
|
||||||
assertTrue(manager.hasCommand("bar"));
|
assertTrue(manager.hasCommand("bar"));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren