Hello, I am currently working on creating a discord bot for a server I administrate, and want to get information on players in the server. I have achieved this by using serverip:port/players.json and serverip:port/info.json but I was wondering if there are any other routes? Like /x.json or whatever.
Ah thank you very much. About getting players ips from /players.json, on some servers player ips show up and on some servers they don’t. They don’t on the server i administrate, is there a setting or something the owner has to enable in the server config to enable this? Or how do we go about retrieving that data?
Server owners can set the sv_endpointprivacy convar which makes every IP show up as 127.0.0.1 in the players.json endpoint.
If you don’t want to expose player’s IP addresses you can create a custom endpoint using the SetHttpHandler native which you then let require authentication.