mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Allow URLs in chat again
This commit is contained in:
parent
915855363d
commit
db8086d6ad
@ -117,7 +117,7 @@ public class TextUtils {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static LegacyComponentSerializer getSerializer() {
|
private static LegacyComponentSerializer getSerializer() {
|
||||||
return LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().character('&').hexCharacter('#').build();
|
return LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().character('&').hexCharacter('#').extractUrls().build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static @NotNull String sanitizeForSerializer(@NotNull String string) {
|
public static @NotNull String sanitizeForSerializer(@NotNull String string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user