package fr.bglands.client.protocol;

import java.util.Objects;

public record HelloAck(
        int protocolMajor,
        int protocolMinor,
        String serverVersion,
        boolean accepted,
        String reason
) implements ServerMessage {
    public HelloAck {
        Objects.requireNonNull(serverVersion, "serverVersion");
        reason = reason == null ? "" : reason;
    }
}
