happens to me as well sometimes when server just restarted/is lagging just give it a bit of time and you'll log on soon
if it persists best idea would be to change mc pw if you really think you're being hacked
If this keeps happening try joining another server and rejoining manacube to reset your session ID or restart your game. If that keeps happening again then you might be hacked.