CubicMC / cubic-server

A fast and extensible C++ Minecraft server implementation
https://cubicmc.org
GNU General Public License v3.0
53 stars 6 forks source link

simple static status response #280

Closed emneo-dev closed 3 months ago

emneo-dev commented 4 months ago

reduced (this should be enough):

{
    "version": {
        "name": "1.19.4",
        "protocol": 762
    }
}

complete:

{
    "version": {
        "name": "1.19.4",
        "protocol": 762
    },
    "players": {
        "max": 100,
        "online": 5,
        "sample": [
            {
                "name": "thinkofdeath",
                "id": "4566e69f-c907-48ee-8d71-d7ba5aa00d20"
            }
        ]
    },
    "description": {
        "text": "Hello, world!"
    },
    "favicon": "data:image/png;base64,<data>",
    "enforcesSecureChat": false,
    "previewsChat": false
}
emneo-dev commented 3 months ago

Just needed strings to make this work, now just need to setup the packet serialization pipeline