📦 Update minecraft-extras for adventure-api 4.2.0
This commit is contained in:
parent
1c7ebe0957
commit
62ba96ebeb
2 changed files with 6 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ package cloud.commandframework.minecraft.extras;
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
import net.kyori.adventure.text.TextComponent;
|
||||||
|
import net.kyori.adventure.text.TextReplacementConfig;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
|
||||||
|
|
@ -42,8 +43,10 @@ final class ComponentHelper {
|
||||||
final @NonNull TextColor highlightColor
|
final @NonNull TextColor highlightColor
|
||||||
) {
|
) {
|
||||||
return component.replaceText(
|
return component.replaceText(
|
||||||
SPECIAL_CHARACTERS_PATTERN,
|
TextReplacementConfig.builder()
|
||||||
match -> match.color(highlightColor)
|
.match(SPECIAL_CHARACTERS_PATTERN)
|
||||||
|
.replacement(match -> match.color(highlightColor))
|
||||||
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ ext {
|
||||||
'commodore' : '1.9',
|
'commodore' : '1.9',
|
||||||
'bungeecord' : '1.8-SNAPSHOT',
|
'bungeecord' : '1.8-SNAPSHOT',
|
||||||
'cloudburst' : '1.0.0-SNAPSHOT',
|
'cloudburst' : '1.0.0-SNAPSHOT',
|
||||||
'adventure-api' : '4.1.1',
|
'adventure-api' : '4.2.0',
|
||||||
'paper-api' : '1.15.2-R0.1-SNAPSHOT',
|
'paper-api' : '1.15.2-R0.1-SNAPSHOT',
|
||||||
'velocity-api' : '1.1.0',
|
'velocity-api' : '1.1.0',
|
||||||
'jb-annotations': '20.1.0',
|
'jb-annotations': '20.1.0',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue