Add sdk/js/mojang/status
parent
c12b935d73
commit
fbe995facb
23
sdk%2Fjs%2Fmojang%2Fstatus.md
Normal file
23
sdk%2Fjs%2Fmojang%2Fstatus.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Server Status
|
||||
|
||||
## Example
|
||||
```ts
|
||||
import {
|
||||
getMojangServerStatus,
|
||||
type MojangServerStatusResponse,
|
||||
} from "restfulmc-lib";
|
||||
|
||||
const serverStatus: MojangServerStatusResponse = await getMojangServerStatus(); // Get the status of Mojang's servers
|
||||
console.log(serverStatus); // Log the status of Mojang's servers
|
||||
```
|
||||
|
||||
## Output
|
||||
```json
|
||||
{
|
||||
"https://libraries.minecraft.net": "ONLINE",
|
||||
"https://api.mojang.com": "ONLINE",
|
||||
"https://sessionserver.mojang.com": "ONLINE",
|
||||
"https://assets.mojang.com": "ONLINE",
|
||||
"https://textures.minecraft.net": "ONLINE",
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user