PaperMC / Waterfall

BungeeCord fork that aims to improve performance and stability.
https://papermc.io
MIT License
736 stars 295 forks source link

FR: ProxyReady Event? #828

Open Gandalf1783 opened 8 months ago

Gandalf1783 commented 8 months ago

In our network, I need to know not if a proxy has started (as in the java process for a given proxy has started), but I need to know if a proxy is ready to listen.

Bungee writes a "Listening on xyz" messages into the log. If Waterfall is ready to accept connections, it should invoke a ProxyReady event, so I could implement this in a plugin.

Are there potential other ways to wait for a proxy until its ready? Dont want to rely on testing against open TCP sockets or reading log messages until "Listening on" comes up.

Gandalf1783 commented 7 months ago

See PR #836 for a possible implementation.