📦 Update minecraft-extras for adventure-api 4.2.0

This commit is contained in:
jmp 2020-11-25 14:08:41 -08:00 • committed by Alexander Söderberg
parent 1c7ebe0957
commit 62ba96ebeb
2 changed files with 6 additions and 3 deletions

View file

@ -25,6 +25,7 @@ package cloud.commandframework.minecraft.extras;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.TextReplacementConfig;
import net.kyori.adventure.text.format.TextColor;
import org.checkerframework.checker.nullness.qual.NonNull;
@ -42,8 +43,10 @@ final class ComponentHelper {
final @NonNull TextColor highlightColor
) {
return component.replaceText(
SPECIAL_CHARACTERS_PATTERN,
match -> match.color(highlightColor)
TextReplacementConfig.builder()
.match(SPECIAL_CHARACTERS_PATTERN)
.replacement(match -> match.color(highlightColor))
.build()
);
}

View file

@ -12,7 +12,7 @@ ext {
'commodore' : '1.9',
'bungeecord' : '1.8-SNAPSHOT',
'cloudburst' : '1.0.0-SNAPSHOT',
'adventure-api' : '4.1.1',
'adventure-api' : '4.2.0',
'paper-api' : '1.15.2-R0.1-SNAPSHOT',
'velocity-api' : '1.1.0',
'jb-annotations': '20.1.0',