flytegg / flytegg/mc-utils

[Util Change]: `Server Info` should support another syntax of `Description` field the remote server sent.

Open
#240 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Svelte
Stars
56
Forks
20
PR merge metrics
No merged PRs in 30d

Description

### Util Name

Server Info

### Changes

Quote from wiki

> The description field is optional. If specified, it should be a [text component](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Text_formatting#Text_components). Note that the Notchian server has no way of providing actual text component data; instead section sign-based codes are embedded within the text of the object. However, third-party servers such as Spigot and Paper will return full components, so make sure you can handle both.

Furthermore, some servers do not obey the rules and use § in text components. The Minecraft client can successfully analyse this kind of `Description`.

But in fact, the util only supports the legacy one.

### Extra Info

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.