example-velocity: Run on Velocity 3, fix decorator
This commit is contained in:
parent
4b9c94279e
commit
c16ee8049b
3 changed files with 15 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ tasks {
|
|||
}
|
||||
|
||||
val pluginJar = shadowJar.map { it.outputs }
|
||||
val spongeRunFiles = velocityRunClasspath.asFileTree
|
||||
val velocityRunFiles = velocityRunClasspath.asFileTree
|
||||
register("runVelocity", JavaExec::class) {
|
||||
group = "cloud"
|
||||
description = "Spin up a Velocity server environment"
|
||||
|
|
@ -39,7 +39,7 @@ tasks {
|
|||
|
||||
inputs.files(pluginJar)
|
||||
|
||||
classpath(spongeRunFiles)
|
||||
classpath(velocityRunFiles)
|
||||
workingDir = layout.projectDirectory.dir("run").asFile
|
||||
|
||||
doFirst {
|
||||
|
|
@ -64,5 +64,5 @@ dependencies {
|
|||
api(project(":cloud-minecraft-extras"))
|
||||
api(project(":cloud-annotations"))
|
||||
annotationProcessor(compileOnly("com.velocitypowered", "velocity-api", Versions.velocityApi))
|
||||
velocityRunClasspath("com.velocitypowered", "velocity-proxy", "1.1.3")
|
||||
velocityRunClasspath("com.velocitypowered", "velocity-proxy", "3.0.0")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ import java.util.function.Function;
|
|||
@Plugin(
|
||||
id = "example-plugin",
|
||||
name = "Cloud example plugin",
|
||||
version = "1.2.0"
|
||||
authors = "Cloud Team",
|
||||
version = "1.6.0"
|
||||
)
|
||||
public final class ExampleVelocityPlugin {
|
||||
|
||||
|
|
@ -80,7 +81,6 @@ public final class ExampleVelocityPlugin {
|
|||
new MinecraftExceptionHandler<CommandSource>()
|
||||
.withDefaultHandlers()
|
||||
.withDecorator(component -> Component.text()
|
||||
.color(NamedTextColor.WHITE)
|
||||
.append(Component.text('['))
|
||||
.append(Component.text("cloud-velocity-example", TextColor.color(0x1CBAE0)))
|
||||
.append(Component.text("] "))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue