Hey fellow Minecraft enthusiasts! I recently stumbled upon a common frustration many of us face - the inability to join the same server from different devices using the same Minecraft account. The default Minecraft server doesn't support simultaneous logins, and we've all encountered that dreaded "Lost connection, login from another location" message. Well, fear not! After some extensive investigation, I've got great news for you. I've delved into the world of open-source Minecraft servers, specifically spigot/craftbukkit, and I'm thrilled to share a simple solution that allows you to bypass this limitation and have multiple devices connect to the same local Minecraft server using just one paid Minecraft account. The Problem: By default, Minecraft server doesn't allow multiple devices to connect to the same server simultaneously with a single account. This means that if you try to log in from another device, you're promptly disconnected with a frustrating message, leaving you scratching your head and reaching for your wallet to purchase another account. The Solution: Thanks to the wonders of open-source software and a bit of code tinkering, I've managed to overcome this obstacle. By making a few modifications to the spigot/craftbukkit source code, I've unlocked the ability to connect multiple devices to the same server using only one paid Microsoft account. How It Works: I've compiled the modified code into a new Minecraft server jar file, and I'm excited to share it with all of you. Now, you can enjoy the game with your family or friends on different devices without the hassle of purchasing additional accounts. https://www.spigotmc.org/wiki/buildtools/#compile-craftbukkit - download the latest BuildTools from this link.
- java -jar BuildTools.jar --rev latest --compile craftbukkit
- open CraftBukkit/pom.xml as a project via IntelliJ IDEA
- a few changes in PlayerList.java and ServerConfigurationPacketListenerImpl.java
- Debug without build before run
[01:06:30] [Server thread/INFO]: jedip joined the game [01:06:30] [Server thread/INFO]: jedip[/10.0.0.191:50533] logged in with entity id 140 at ([world]-36.292752731750646, 63.0, 84.04277460551512) [01:06:58] [Server thread/INFO]: jedip joined the game [01:06:58] [Server thread/INFO]: jedip[/10.0.0.63:64988] logged in with entity id 143 at ([world]-36.292752731750646, 63.0, 84.04277460551512) I also create a new feature request jira ticket SPIGOT-7529 to Spigot project. Hope this can be accepted and I would like to contribute on it. Get Your Hands on It: I've made the modified Minecraft server jar file available for download [insert link here]. Feel free to grab it, follow the simple installation instructions, and start enjoying the game with your loved ones hassle-free. Important Note: Remember, this modification is intended for personal use on a local server, and I encourage everyone to respect Mojang's policies regarding account usage. Let's spread the word and make Minecraft even more accessible for families and friends! Happy gaming! Download Link Installation Guide: java -jar craftbukkit-1.20.3-R0.1-SNAPSHOT-bootstrap.jar [01:33:56] [ServerMain/WARN]: Failed to load eula.txt [01:33:56] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info. vim eula.txt #By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA). #Wed Dec 06 01:33:56 PST 2023 eula=true
vim server.properties online-mode=false
start your local Minecraft Server again and enjoy the home family fun time with yoru kids using the only one paied account from multiple devices.
java -jar craftbukkit-1.20.3-R0.1-SNAPSHOT-bootstrap.jar java -jar craftbukkit-1.20.3-R0.1-SNAPSHOT-bootstrap.jar Unbundling libraries to /Users/qingyirongrong/Applications/bundler Starting server Loading libraries, please wait... [01:38:37] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [01:38:37] [ServerMain/INFO]: Found new data pack file/bukkit, loading it automatically [01:38:37] [ServerMain/INFO]: No existing world data, creating new world [01:38:38] [ServerMain/INFO]: Loaded 7 recipes [01:38:37] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [01:38:37] [ServerMain/INFO]: Found new data pack file/bukkit, loading it automatically [01:38:37] [ServerMain/INFO]: No existing world data, creating new world [01:38:38] [ServerMain/INFO]: Loaded 7 recipes [01:38:39] [Server thread/INFO]: Starting minecraft server version 1.20.3 [01:38:39] [Server thread/INFO]: Loading properties [01:38:39] [Server thread/INFO]: Default game type: SURVIVAL [01:38:39] [Server thread/INFO]: Generating keypair [01:38:39] [Server thread/INFO]: Starting Minecraft server on *:25565 [01:38:39] [Server thread/INFO]: Using default channel type [01:38:39] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-8232a74 (MC: 1.20.3) (Implementing API version 1.20.3-R0.1-SNAPSHOT) [01:38:40] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! [01:38:40] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware. [01:38:40] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. [01:38:40] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file. [01:38:40] [Server thread/INFO]: Preparing level "world" [01:38:43] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [01:38:44] [Worker-Main-3/INFO]: Preparing spawn area: 0% [01:38:44] [Worker-Main-1/INFO]: Preparing spawn area: 0% [01:38:44] [Worker-Main-1/INFO]: Preparing spawn area: 0% [01:38:45] [Worker-Main-4/INFO]: Preparing spawn area: 1% [01:38:45] [Worker-Main-3/INFO]: Preparing spawn area: 3% [01:38:46] [Worker-Main-4/INFO]: Preparing spawn area: 4% [01:38:46] [Worker-Main-3/INFO]: Preparing spawn area: 5% [01:38:47] [Worker-Main-1/INFO]: Preparing spawn area: 9% [01:38:47] [Worker-Main-6/INFO]: Preparing spawn area: 11% [01:38:48] [Worker-Main-5/INFO]: Preparing spawn area: 15% [01:38:48] [Worker-Main-7/INFO]: Preparing spawn area: 18% [01:38:49] [Worker-Main-5/INFO]: Preparing spawn area: 22% [01:38:49] [Worker-Main-7/INFO]: Preparing spawn area: 25% [01:38:50] [Worker-Main-7/INFO]: Preparing spawn area: 30% [01:38:50] [Worker-Main-2/INFO]: Preparing spawn area: 34% [01:38:51] [Worker-Main-3/INFO]: Preparing spawn area: 39% [01:38:51] [Worker-Main-2/INFO]: Preparing spawn area: 44% [01:38:52] [Worker-Main-2/INFO]: Preparing spawn area: 49% [01:38:52] [Worker-Main-2/INFO]: Preparing spawn area: 54% [01:38:53] [Worker-Main-1/INFO]: Preparing spawn area: 59% [01:38:53] [Worker-Main-1/INFO]: Preparing spawn area: 65% [01:38:54] [Worker-Main-1/INFO]: Preparing spawn area: 70% [01:38:54] [Worker-Main-7/INFO]: Preparing spawn area: 77% [01:38:55] [Worker-Main-7/INFO]: Preparing spawn area: 83% [01:38:55] [Worker-Main-5/INFO]: Preparing spawn area: 88% [01:38:56] [Worker-Main-2/INFO]: Preparing spawn area: 93% [01:38:56] [Server thread/INFO]: Time elapsed: 12966 ms [01:38:56] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether [01:38:57] [Worker-Main-2/INFO]: Preparing spawn area: 0% [01:38:57] [Worker-Main-4/INFO]: Preparing spawn area: 1% [01:38:57] [Worker-Main-7/INFO]: Preparing spawn area: 3% [01:38:58] [Worker-Main-3/INFO]: Preparing spawn area: 9% [01:38:58] [Worker-Main-6/INFO]: Preparing spawn area: 14% [01:38:59] [Worker-Main-6/INFO]: Preparing spawn area: 20% [01:38:59] [Worker-Main-2/INFO]: Preparing spawn area: 28% [01:39:00] [Worker-Main-5/INFO]: Preparing spawn area: 34% [01:39:00] [Worker-Main-6/INFO]: Preparing spawn area: 43% [01:39:01] [Worker-Main-4/INFO]: Preparing spawn area: 53% [01:39:01] [Worker-Main-5/INFO]: Preparing spawn area: 60% [01:39:02] [Worker-Main-6/INFO]: Preparing spawn area: 69% [01:39:02] [Worker-Main-5/INFO]: Preparing spawn area: 77% [01:39:03] [Worker-Main-2/INFO]: Preparing spawn area: 85% [01:39:03] [Worker-Main-2/INFO]: Preparing spawn area: 95% [01:39:04] [Server thread/INFO]: Time elapsed: 7278 ms [01:39:04] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end [01:39:04] [Worker-Main-3/INFO]: Preparing spawn area: 0% [01:39:04] [Worker-Main-7/INFO]: Preparing spawn area: 23% [01:39:05] [Server thread/INFO]: Time elapsed: 926 ms [01:39:05] [Server thread/INFO]: Done (25.013s)! For help, type "help" |