haveachin / infrared

An ultra lightweight minecraft reverse proxy and idle placeholder
https://infrared.dev
GNU Affero General Public License v3.0
753 stars 61 forks source link

Returns all players who pass infrared to the MOTD #128

Open 10935336 opened 2 years ago

10935336 commented 2 years ago

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

lhridder commented 2 years ago

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

10935336 commented 2 years ago

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

Yes

lhridder commented 2 years ago

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

10935336 commented 2 years ago

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.

haveachin commented 2 years ago

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.