Bump Adventure API version to 4.8.1
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
parent
ed3ae6f08b
commit
1b485b9f79
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ object Versions {
|
||||||
const val commodore = "1.10"
|
const val commodore = "1.10"
|
||||||
const val bungeecord = "1.8-SNAPSHOT"
|
const val bungeecord = "1.8-SNAPSHOT"
|
||||||
const val cloudburst = "1.0.0-SNAPSHOT"
|
const val cloudburst = "1.0.0-SNAPSHOT"
|
||||||
const val adventureApi = "4.7.0"
|
const val adventureApi = "4.8.1"
|
||||||
const val adventurePlatform = "4.0.0-SNAPSHOT"
|
const val adventurePlatform = "4.0.0-SNAPSHOT"
|
||||||
const val paperApi = "1.15.2-R0.1-SNAPSHOT"
|
const val paperApi = "1.15.2-R0.1-SNAPSHOT"
|
||||||
const val velocityApi = "1.1.0"
|
const val velocityApi = "1.1.0"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ package cloud.commandframework.minecraft.extras;
|
||||||
import cloud.commandframework.ArgumentDescription;
|
import cloud.commandframework.ArgumentDescription;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.ComponentLike;
|
import net.kyori.adventure.text.ComponentLike;
|
||||||
import net.kyori.adventure.text.serializer.plain.PlainComponentSerializer;
|
|
||||||
import net.kyori.adventure.translation.GlobalTranslator;
|
import net.kyori.adventure.translation.GlobalTranslator;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
|
||||||
|
|
@ -112,7 +111,8 @@ public final class RichDescription implements ArgumentDescription {
|
||||||
@Override
|
@Override
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public @NonNull String getDescription() {
|
public @NonNull String getDescription() {
|
||||||
return PlainComponentSerializer.plain().serialize(GlobalTranslator.render(this.contents, Locale.getDefault()));
|
return net.kyori.adventure.text.serializer.plain.PlainComponentSerializer.plain()
|
||||||
|
.serialize(GlobalTranslator.render(this.contents, Locale.getDefault()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue