Skip to content

Server not working #829

Open
Open
@fizu-3

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions