mc-beta-server/index.ts

13 lines
520 B
TypeScript
Raw Normal View History

2023-04-08 20:52:47 +01:00
import { readFileSync } from "fs";
import { Console } from "hsconsole";
import Config from "./config";
import MinecraftServer from "./server/MinecraftServer";
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
Console.customHeader(`MC Beta Server started at ${new Date()}`);
2023-04-09 04:47:23 +01:00
new MinecraftServer(config);