Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server not working #829

Open
fizu-3 opened this issue Jun 16, 2024 · 1 comment
Open

Server not working #829

fizu-3 opened this issue Jun 16, 2024 · 1 comment

Comments

@fizu-3
Copy link

fizu-3 commented Jun 16, 2024

Hello i created server on 1.16.5 but is not working, here is code:

    public ProxyController() {
        this.server = new TcpServer("0.0.0.0", 25565, MinecraftProtocol.class);
        this.server.setGlobalFlag(MinecraftConstants.SERVER_LOGIN_HANDLER_KEY,new PlayerJoinListener());
        this.server.setGlobalFlag(MinecraftConstants.SERVER_COMPRESSION_THRESHOLD, 100);
        this.server.setGlobalFlag(MinecraftConstants.VERIFY_USERS_KEY, false);

        server.setGlobalFlag(MinecraftConstants.SERVER_PING_TIME_HANDLER_KEY, (ServerPingTimeHandler) (session, pingTime) ->
                System.out.println("Server ping took " + pingTime + "ms"));
        server.bind();
    }

If I turn on the server and want to join it, it says "Disconnected" and 0 errors

@AlexProgrammerDE
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants