I currently have made a plugin that sends player to a hub server on kick. This works fine when stopping/restart/kicking the player, but when I force shutdown the spigot server (instantly stop it), or sometimes when the spigot server stops abruptly due to a crash, the player gets disconnected from the bungeecord (proxy disconnected). I'm currently using ServerKickEvent and setCancelServer to do this. How do I catch abrupt stops and move players to a hub server?
↧