Reserved.
The JSON format will be saved like this:
PHP Code:
{
"IP:PORT": {
"server": "Server Name",
"map": "de_dust2",
"players": "0",
"playersmax": "32",
"ip": "IP:PORT"
}
}
It can also hold more servers informations than just one. Currently using it for my pug mod to get servers informations, such as mode description (Warmup, Knife Round, Live, etc), also match scoreboard and so on.
----------------
(22.02.2024)
Updated main post with a Full-working PHP example which checks the IP passed to the Web API. Also, a simple way to display the existing informations inside the JSON file for starters.
__________________