This method only works if you host your own Minecraft server, or have access to a friend’s Minecraft server. This will temporarily disable the Minecraft server. The properties will open in your computer’s default text editor program, such as Notepad or Text Editor.  ” The value should now read as “online-mode=false,” which means that online mode is disabled on your server.    The game will launch, and you will now be playing offline.

Summary:
Navigate to and open the “Minecraft Server” folder on your computer. Remove the checkmark next to the Minecraft server name. Open the “server.properties” file. Locate “online-mode=true” in the list of properties. Change the value of “true” to “false. Select the option to save changes, then exit Notepad or Text Editor. Replace the checkmark next to the Minecraft server name, then double-click on the server to restart and relaunch the server. Open Minecraft Launcher, then click on “Login” at the bottom right corner. Select “Play Offline,” then select your Minecraft server.