CubicMC / cubic-server

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

simple static status response #280

Closed emneo-dev closed 1 month ago

emneo-dev commented 2 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 1 month ago

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