From de812a581a58851ec47a1464bb921d0f1175876d Mon Sep 17 00:00:00 2001 From: Braydon Date: Mon, 15 Apr 2024 12:54:31 -0700 Subject: [PATCH] Add sdk/js/server/blocked --- sdk%2Fjs%2Fserver%2Fblocked.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sdk%2Fjs%2Fserver%2Fblocked.md diff --git a/sdk%2Fjs%2Fserver%2Fblocked.md b/sdk%2Fjs%2Fserver%2Fblocked.md new file mode 100644 index 0000000..eeded96 --- /dev/null +++ b/sdk%2Fjs%2Fserver%2Fblocked.md @@ -0,0 +1,9 @@ +# Mojang Blocked + +## Example +```ts +import { isMojangBlocked } from "restfulmc-lib"; + +const blocked: boolean = await isMojangBlocked("arkhamnetwork.org"); +console.log(`The server is ${blocked ? "" : "not "}blocked`); +``` \ No newline at end of file