diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b22f559..16c2372 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,8 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Correct env - run: - echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} + run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} - name: Check out code into the proper directory uses: actions/checkout@v4 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ecd2bf0..6c64fef 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,4 +21,4 @@ jobs: run: cargo fmt --check - name: Check build - run: cargo clippy \ No newline at end of file + run: cargo clippy diff --git a/assets/api/index.html b/assets/api/index.html index 2f6a894..6893085 100644 --- a/assets/api/index.html +++ b/assets/api/index.html @@ -1,70 +1,87 @@ - + - - + - - - - - - + + + + + + Minecraft server tester - + - + - +

MCping API

-

The MCping API is very simple. There is a Java API at /api/java/, and a bedrock api at /api/bedrock/. To - specify - what server to ping, you append that server to the end of the URL, like so.

+

+ The MCping API is very simple. There is a Java API at /api/java/, and a + bedrock api at /api/bedrock/. To specify what server to ping, you append + that server to the end of the URL, like so. +

/api/java/mcping.me -
-

The response will look like so, with an "icon" base64 PNG field added if the server has an icon. The latency - is - in mlliseconds, from Toronto, Canada.. Keep in mind that some servers may use signcode colors for the MOTD - and - player sample. Your application should handle this. The player sample is often used for advertising, so take - it - with a grain of salt. The Bedrock API response is the same, with the caveat of never returning the icon.

+
+

+ The response will look like so, with an "icon" base64 PNG field added if + the server has an icon. The latency is in mlliseconds, from Toronto, + Canada.. Keep in mind that some servers may use signcode colors for the + MOTD and player sample. Your application should handle this. The player + sample is often used for advertising, so take it with a grain of salt. The + Bedrock API response is the same, with the caveat of never returning the + icon. +

-
-

There is also a Mojang Services API, at /api/services. This is useful for - checking if - the authservers or Xbox Services are having issues. Example response below. The possible values for each - field - are DefiniteProblems, PossibleProblems, and Operational.

+
+

+ There is also a Mojang Services API, at + /api/services. This is useful for checking if + the authservers or Xbox Services are having issues. Example response + below. The possible values for each field are DefiniteProblems, + PossibleProblems, and Operational. +

- - - - \ No newline at end of file + + diff --git a/assets/index.html b/assets/index.html index f5f6326..57dcd8f 100644 --- a/assets/index.html +++ b/assets/index.html @@ -1,131 +1,140 @@ - + - - + - - - - - - + + + + + + Minecraft server tester - + - + - +

Minecraft server tester

- -
-
- - -
-
- Your IP: -
-
+ +
+
+ + +
+
+ Your IP: +
+
-