Compare commits
2 Commits
053bfedfa1
...
77bff8067e
Author | SHA1 | Date | |
---|---|---|---|
77bff8067e | |||
9be372e3e0 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "restfulmc-lib",
|
"name": "restfulmc-lib",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
|
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
|
||||||
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
|
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
export * from "@/lib/restfulmc";
|
export * from "@/lib/restfulmc";
|
||||||
|
|
||||||
|
// Types
|
||||||
export * from "@/types/error";
|
export * from "@/types/error";
|
||||||
export * from "@/types/player/skin-part";
|
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 { SkinPart } from "@/types/player/skin-part";
|
||||||
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
|
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
|
||||||
import { CachedJavaMinecraftServer } from "@/types/server/java-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.
|
* 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[];
|
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 {
|
import {
|
||||||
|
ServerPlatform,
|
||||||
getJavaServerFavicon,
|
getJavaServerFavicon,
|
||||||
getMinecraftServer,
|
getMinecraftServer,
|
||||||
isMojangBlocked,
|
isMojangBlocked,
|
||||||
@ -6,7 +7,6 @@ import {
|
|||||||
import { RestfulMCAPIError } from "@/types/error";
|
import { RestfulMCAPIError } from "@/types/error";
|
||||||
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
|
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
|
||||||
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
|
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
|
||||||
import { ServerPlatform } from "@/types/server/server";
|
|
||||||
import { expect, test } from "bun:test";
|
import { expect, test } from "bun:test";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user