Kamesuta / BungeePteroPower

BungeePteroPower is a plugin that can automatically start/stop servers based on the number of players.
https://www.spigotmc.org/resources/%E2%9A%A1-bungeepteropower-%E2%9A%A1-start-stop-servers-when-player-join-leave.114883/
MIT License
20 stars 8 forks source link

Could not connect to a default or fallback server #9

Open ventoryprod opened 6 months ago

ventoryprod commented 6 months ago

When joining to Bungee server that redirects to the actual server without any lobby between them, causes the next error on connection: Could not connect to a default or fallback server. Incorrectly configured address/port/firewall?

I assume that it's limitation of the bungeecord, but if it is not, is there a possibility to make it work when no lobby server with portals to join the server is used, and if yes, then how because seems like I messed up somewhere.

Kamesuta commented 6 months ago

Thanks for your request!

It is true that if you set the lobby itself to start up with BungeePteroPower, the message on kick will show the Bungeecord error message.
I would like to have the kick message tell you that the server is starting up when you log in, but it seems to be a bit difficult due to Bungeecord limitations.

I am unable to respond immediately, but will investigate when I have time!

ventoryprod commented 6 months ago

Cool, I will make a lobby server until it will (if it ever will) be possible to startup server without triggering that in the lobby

Kamesuta commented 6 months ago

Happy to announce that I have implemented a feature in v1.7 that you have been asking for!
You can now see a custom message when logging in if the lobby server is down.
2024-03-10_01h41_43

However, this feature is disabled by default.
To enable it, please turn on useSynchronousPing in config.yml.

Due to the limitations of Bungeecord, during a ServerConnectEvent this feature blocks the thread until the ping is completed.
After the ping completes, let the thread continue and disconnect the player with a message if the lobby server is not open.

TufftyMirror3585 commented 5 months ago

is there something other than useSynchronousPing that needs to be on as the name on the plugin and on bungeecord is the same and i still get the default message even though if i run the start command it works is there a bungeecord setting that interferes with it as i have tried turning off ping passthrough

Kamesuta commented 5 months ago

Currently BungeeCord does not support to remove default message via plugin, so this is not possible.
I have submitted a pull request to BungeeCord to add an event for login failures, so that the default message can be removed once it is merged.

▼ Pull request to BungeeCord
https://github.com/SpigotMC/BungeeCord/pull/3638

▼ If the pull request is merged, the following modifications can be made to improve the situation.
https://github.com/Kamesuta/BungeePteroPower/pull/11