haveachin/infrared

Returns all players who pass infrared to the MOTD

Opened this issue · 5 comments

Is your feature request related to a problem? Please describe.
Returns all players who pass infrared to the MOTD, I guess this would be cool for some monitoring sites like "Minecraft Server List".
We just don't want fakeplayer.

Describe the solution you'd like
Something like this.
{
"domainName": "example.com",
"Returns-all-players-who-pass-infrared-in-MOTD": true
}

Describe alternatives you've considered
I noticed that Prometheus infrared_connected already returns the number of players, maybe we just need to add them up and add them to a "MOTD" return?

Edit: My previous description was not very accurate, modified

So you want to sum the amount of players on your subservers to send it back via the motd?

So you want to sum the amount of players on your subservers to send it back via the motd?

Yes

Then you’d probably want to look into redisbungee as that’s made to aggregate playercounts, doing this through infrared would require custom software on the backend part

I don't use bungeecord because I run a lot of forge, fabric, vanilla servers.
Maybe we don't need to get the number of players on the backend server, just the number of players who passed the infrared.

I'm working on an API in the rewrite that will be able to give information about the current player counts. But I'm not sure when the first stable release will be.