Skip to content
Vrekt edited this page May 25, 2022 · 1 revision

TODO

    public static void main(String[] args) {

        final LunarProtocol protocol = new LunarProtocol(true);
        final GameServer gameServer = new GameServer(protocol, "1.0");

        final NettyServer server = new NettyServer("localhost", 6969, protocol, gameServer);
        server.bind();

        gameServer.getWorldManager().addWorld("TutorialWorld", new WorldAdapter(new ServerWorldConfiguration(), "TutorialWorld"));
        gameServer.start();

        System.err.println("Server running.");
    }