Skip to content

Commit 22de3d8

Browse files
committed
Revert 4219450
Hotfix is no longer needed as it has been fixed in adventure.
1 parent fe4e388 commit 22de3d8

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Essentials/src/main/java/com/earth2me/essentials/utils/AdventureUtil.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44
import net.kyori.adventure.text.Component;
55
import net.kyori.adventure.text.flattener.ComponentFlattener;
66
import net.kyori.adventure.text.format.NamedTextColor;
7-
import net.kyori.adventure.text.format.TextDecoration;
87
import net.kyori.adventure.text.minimessage.MiniMessage;
98
import net.kyori.adventure.text.minimessage.tag.Tag;
109
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
11-
import net.kyori.adventure.text.serializer.legacy.CharacterAndFormat;
1210
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
13-
import net.kyori.adventure.text.serializer.legacy.Reset;
14-
15-
import java.util.ArrayList;
16-
import java.util.Arrays;
17-
import java.util.List;
1811

1912
public final class AdventureUtil {
2013
private static final LegacyComponentSerializer LEGACY_SERIALIZER;
@@ -25,25 +18,8 @@ public final class AdventureUtil {
2518
private static MiniMessage miniMessageInstance;
2619

2720
static {
28-
final List<CharacterAndFormat> formats = new ArrayList<>();
29-
formats.addAll(CharacterAndFormat.defaults());
30-
formats.addAll(Arrays.asList(
31-
CharacterAndFormat.characterAndFormat('A', NamedTextColor.GREEN),
32-
CharacterAndFormat.characterAndFormat('B', NamedTextColor.AQUA),
33-
CharacterAndFormat.characterAndFormat('C', NamedTextColor.RED),
34-
CharacterAndFormat.characterAndFormat('D', NamedTextColor.LIGHT_PURPLE),
35-
CharacterAndFormat.characterAndFormat('E', NamedTextColor.YELLOW),
36-
CharacterAndFormat.characterAndFormat('F', NamedTextColor.WHITE),
37-
CharacterAndFormat.characterAndFormat('K', TextDecoration.OBFUSCATED),
38-
CharacterAndFormat.characterAndFormat('L', TextDecoration.BOLD),
39-
CharacterAndFormat.characterAndFormat('M', TextDecoration.STRIKETHROUGH),
40-
CharacterAndFormat.characterAndFormat('N', TextDecoration.UNDERLINED),
41-
CharacterAndFormat.characterAndFormat('O', TextDecoration.ITALIC),
42-
CharacterAndFormat.characterAndFormat('R', Reset.INSTANCE)
43-
));
4421
final LegacyComponentSerializer.Builder builder = LegacyComponentSerializer.builder()
4522
.flattener(ComponentFlattener.basic())
46-
.formats(formats)
4723
.useUnusualXRepeatedCharacterHexFormat();
4824
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_16_1_R01)) {
4925
builder.hexColors();

0 commit comments

Comments
 (0)