mc-beta-server/index.js
2021-08-12 01:44:18 +01:00

8 lines
No EOL
240 B
JavaScript

const server = new (require('net').Server)();
const config = require("./config.json");
const mcServer = require("./server/server.js");
server.listen(config.port, () => mcServer.init(config));
server.on('connection', mcServer.connection);