diff --git a/mcstatus/motd/components.py b/mcstatus/motd/components.py index fa192c1a..2f0f404e 100644 --- a/mcstatus/motd/components.py +++ b/mcstatus/motd/components.py @@ -114,7 +114,7 @@ def _check_rgb(rgb: tuple[int, int, int]) -> None: class TranslationTag: """Represents a ``translate`` field in server's answer. - This just exist, but is completely ignored by our transformers. + This just exists, but is completely ignored by our transformers. You can find translation tags in :attr:`Motd.parsed ` attribute. .. seealso:: `Minecraft's wiki. `__ diff --git a/mcstatus/status_response.py b/mcstatus/status_response.py index b3920c1c..a147c5be 100644 --- a/mcstatus/status_response.py +++ b/mcstatus/status_response.py @@ -23,8 +23,8 @@ class RawJavaResponseVersion(TypedDict): protocol: int class RawJavaResponseMotdWhenDict(TypedDict, total=False): - text: str # only present if translation is set - translation: str # same to the above field + text: str # only present if `translate` is set + translate: str # same to the above field extra: list[RawJavaResponseMotdWhenDict] color: str diff --git a/tests/motd/test_motd.py b/tests/motd/test_motd.py index 9319aec9..f460d28b 100644 --- a/tests/motd/test_motd.py +++ b/tests/motd/test_motd.py @@ -102,8 +102,8 @@ def test_formatting_key_set_to_false_here_without_it_being_set_to_true_before(se Formatting.RESET, ] - def test_translation_string(self): - assert Motd.parse(RawJavaResponseMotdWhenDict(translation="the key")).parsed == [ + def test_translate_string(self): + assert Motd.parse(RawJavaResponseMotdWhenDict(translate="the key")).parsed == [ TranslationTag("the key"), Formatting.RESET, ]