mc-beta-server/index.js

15 lines
393 B
JavaScript
Raw Normal View History

2021-08-24 15:29:46 +01:00
/*
==============- index.js -==============
Created by Holly (tgpethan) (c) 2021
Licenced under MIT
========================================
*/
2021-08-11 15:05:14 +01:00
const server = new (require('net').Server)();
const config = require("./config.json");
2021-08-10 00:40:30 +01:00
2021-08-12 01:44:18 +01:00
const mcServer = require("./server/server.js");
2021-08-10 00:40:30 +01:00
2021-08-12 01:44:18 +01:00
server.listen(config.port, () => mcServer.init(config));
2021-08-10 00:40:30 +01:00
2021-08-12 01:44:18 +01:00
server.on('connection', mcServer.connection);