2023-04-08 20:52:47 +01:00
|
|
|
import { Config } from "./config";
|
2023-08-15 10:00:12 +01:00
|
|
|
import { Console } from "hsconsole";
|
2023-04-08 20:52:47 +01:00
|
|
|
import { readFileSync } from "fs";
|
|
|
|
import { MinecraftServer } from "./server/MinecraftServer";
|
2023-04-17 02:05:01 +01:00
|
|
|
import { SaveCompressionType } from "./server/enums/SaveCompressionType";
|
|
|
|
const tempConfig = JSON.parse(readFileSync("./config.json").toString());
|
|
|
|
tempConfig.saveCompression = SaveCompressionType[tempConfig.saveCompression];
|
|
|
|
const config:Config = tempConfig as Config;
|
2023-04-08 20:52:47 +01:00
|
|
|
|
2023-08-15 10:00:12 +01:00
|
|
|
Console.customHeader(`MC Beta Server started at ${new Date()}`);
|
|
|
|
|
2023-04-09 04:47:23 +01:00
|
|
|
new MinecraftServer(config);
|