Since iv seen a lot of posts like this im going to assume it has to be one of these three:
Cracked mc,Vpn,Bad connection.
You can't play on a cracked minecraft account.
Vpns can be detected by minehut so they will probably keep kicking you.
And lastly if you dont have a vpn and you have a premuim account its either minehut or your internet connection.