@@ -33,21 +33,19 @@ <h1>MCping API</h1>
33
33
< p >
34
34
The MCping API is very simple. There is a Java API at /api/java/, and a
35
35
bedrock api at /api/bedrock/. To specify what server to ping, you append
36
- that server to the end of the URL, like so.
36
+ that server to the end of the URL, like so:
37
+ < a href ="/api/java/mcping.me "> /api/java/mcping.me</ a > .
37
38
</ p >
38
- < a href ="/api/java/mcping.me "> /api/java/mcping.me</ a >
39
- < br />
40
39
< p >
41
- The response will look like so , with an "icon" base64 PNG field added if
42
- the server has an icon. The latency is in mlliseconds , from Toronto,
40
+ The response will look as below , with an "icon" base64 PNG field added if
41
+ the server has an icon. The latency is in milliseconds , from Toronto,
43
42
Canada. Keep in mind that some servers may use signcode colors for the
44
43
MOTD and player sample. Your application should handle this. The player
45
44
sample is often used for advertising, so take it with a grain of salt. The
46
45
Bedrock API response is the same, with the caveat of never returning the
47
46
icon. The bedrock player list may also be synthetic.
48
47
</ p >
49
48
< pre > < code id ="examplePingResponse " class ="language-json "> </ code > </ pre >
50
- < br />
51
49
< p >
52
50
There is also a Mojang Services API, at
53
51
< a href ="/api/services "> /api/services</ a > . This is useful for checking if
@@ -57,7 +55,6 @@ <h1>MCping API</h1>
57
55
< code > Operational</ code > .
58
56
</ p >
59
57
< pre > < code id ="exampleServicesResponse " class ="language-json "> </ code > </ pre >
60
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js "> </ script >
61
- < script src ="/api.js "> </ script >
58
+ < script src ="/api.js " type ="module "> </ script >
62
59
</ body >
63
60
</ html >
0 commit comments