Export server platform
All checks were successful
Publish JS SDK / docker (push) Successful in 32s

This commit is contained in:
Braydon 2024-04-15 11:10:05 -04:00
parent 9be372e3e0
commit 77bff8067e
5 changed files with 20 additions and 18 deletions

@ -1,3 +1,6 @@
export * from "@/lib/restfulmc";
// Types
export * from "@/types/error";
export * from "@/types/player/skin-part";
export * from "@/types/server/platform";

@ -4,7 +4,7 @@ import { CachedPlayer } from "@/types/player/player";
import { SkinPart } from "@/types/player/skin-part";
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
import { ServerPlatform } from "@/types/server/server";
import { ServerPlatform } from "@/types/server/platform";
/**
* Get a player by their username or UUID.

@ -0,0 +1,15 @@
/**
* A platform a Minecraft
* server can operate on.
*/
export enum ServerPlatform {
/**
* The Java edition of Minecraft.
*/
JAVA = "java",
/**
* The Bedrock edition of Minecraft.
*/
BEDROCK = "bedrock",
}

@ -109,19 +109,3 @@ type MOTD = {
*/
html: string[];
};
/**
* A platform a Minecraft
* server can operate on.
*/
export enum ServerPlatform {
/**
* The Java edition of Minecraft.
*/
JAVA = "java",
/**
* The Bedrock edition of Minecraft.
*/
BEDROCK = "bedrock",
}

@ -1,4 +1,5 @@
import {
ServerPlatform,
getJavaServerFavicon,
getMinecraftServer,
isMojangBlocked,
@ -6,7 +7,6 @@ import {
import { RestfulMCAPIError } from "@/types/error";
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
import { ServerPlatform } from "@/types/server/server";
import { expect, test } from "bun:test";
/**