Compare commits

..

No commits in common. "77bff8067e6e2c7b53bef9065e0cfe7da49e6e42" and "053bfedfa17b7f327d4d0448412d6e64d5b9e12c" have entirely different histories.

6 changed files with 19 additions and 21 deletions

View File

@ -1,6 +1,6 @@
{
"name": "restfulmc-lib",
"version": "1.0.5",
"version": "1.0.4",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
"keywords": [

View File

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

View File

@ -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/platform";
import { ServerPlatform } from "@/types/server/server";
/**
* Get a player by their username or UUID.

View File

@ -1,15 +0,0 @@
/**
* 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",
}

View File

@ -109,3 +109,19 @@ 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",
}

View File

@ -1,5 +1,4 @@
import {
ServerPlatform,
getJavaServerFavicon,
getMinecraftServer,
isMojangBlocked,
@ -7,6 +6,7 @@ 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";
/**