mc-beta-server/index.js

8 lines
240 B
JavaScript
Raw Normal View History

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);