Fix server types

This commit is contained in:
Braydon 2024-04-15 07:49:00 -04:00
parent bf9fa6582f
commit 1eb4a9ec0e
3 changed files with 6 additions and 4 deletions

@ -3,3 +3,5 @@ export * from "./types/generic";
export * from "./types/mojang"; export * from "./types/mojang";
export * from "./types/player"; export * from "./types/player";
export * from "./types/server"; export * from "./types/server";
export * from "./types/server/bedrock-server";
export * from "./types/server/java-server";

@ -28,7 +28,7 @@ export interface BedrockMinecraftServer extends MinecraftServer {
/** /**
* The version information of this server. * The version information of this server.
*/ */
version: Version; version: BedrockVersion;
/** /**
* The gamemode of this server. * The gamemode of this server.
@ -44,7 +44,7 @@ export type Edition = "MCPE" | "MCEE";
/** /**
* Version information for a server. * Version information for a server.
*/ */
export type Version = { export type BedrockVersion = {
/** /**
* The protocol version of the server. * The protocol version of the server.
*/ */

@ -18,7 +18,7 @@ export interface JavaMinecraftServer extends MinecraftServer {
/** /**
* The version information of this server. * The version information of this server.
*/ */
version: Version; version: JavaVersion;
/** /**
* The favicon of this server, undefined if none. * The favicon of this server, undefined if none.
@ -70,7 +70,7 @@ export interface JavaMinecraftServer extends MinecraftServer {
/** /**
* Version information for a server. * Version information for a server.
*/ */
export type Version = { export type JavaVersion = {
/** /**
* The version name of the server. * The version name of the server.
*/ */