Bump text to 3.0.0
This commit is contained in:
@@ -18,7 +18,10 @@ sourceSets {
|
||||
dependencies {
|
||||
compile 'com.google.code.gson:gson:2.8.5'
|
||||
compile "com.google.guava:guava:${guavaVersion}"
|
||||
compile 'net.kyori:text:1.12-1.6.5'
|
||||
compile "net.kyori:text-api:${textVersion}"
|
||||
compile "net.kyori:text-serializer-gson:${textVersion}"
|
||||
compile "net.kyori:text-serializer-legacy:${textVersion}"
|
||||
compile "net.kyori:text-serializer-plain:${textVersion}"
|
||||
compile 'com.moandjiezana.toml:toml4j:0.7.2'
|
||||
compile "org.slf4j:slf4j-api:${slf4jVersion}"
|
||||
compile 'com.google.inject:guice:4.2.0'
|
||||
|
@@ -3,7 +3,7 @@ package com.velocitypowered.api.event;
|
||||
import com.google.common.base.Preconditions;
|
||||
import java.util.Optional;
|
||||
import net.kyori.text.Component;
|
||||
import net.kyori.text.serializer.ComponentSerializers;
|
||||
import net.kyori.text.serializer.plain.PlainComponentSerializer;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
/**
|
||||
@@ -102,7 +102,7 @@ public interface ResultedEvent<R extends ResultedEvent.Result> {
|
||||
return "allowed";
|
||||
}
|
||||
if (reason != null) {
|
||||
return "denied: " + ComponentSerializers.PLAIN.serialize(reason);
|
||||
return "denied: " + PlainComponentSerializer.INSTANCE.serialize(reason);
|
||||
}
|
||||
return "denied";
|
||||
}
|
||||
|
Reference in New Issue
Block a user