Side note: if you want to run a dedicated server and play on it with a cracked version (or just an offline mode or while MS services are down) edit the server.properties file and set online-mode=false
from true. (Then restart the server if it was online)
This wipes everyone's inventories if there was already progress, so have everyone put their items in a chest before doing this. If you use modded, have everyone unclaim their chunks or any other username-bound items like teleporters with permission systems.
All of this can be redone, reclaimed, re-bound after the change happens. This effectively changes your in-game identities on a server from a Microsoft one to an offline one. This also makes it possible to evade username-based bans.