This commit is contained in:
parent
9be372e3e0
commit
77bff8067e
@ -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.
|
||||
|
15
JS-SDK/src/types/server/platform.ts
Normal file
15
JS-SDK/src/types/server/platform.ts
Normal file
@ -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";
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user