💻Setup a server on Linux
1. Download authlib-injector
authlib-injectorDownload the latest version from the official github repo: 👉 https://github.com/yushijinhun/authlib-injector/releases
2. Place the JAR File
Move the downloaded authlib-injector JAR file to a dedicated directory.
For example, store it in /opt/authlib-injector/:
mkdir -p /opt/authlib-injector
mv authlib-injector.jar /opt/authlib-injector/3. Modify the Server Startup Command
To use authlib-injector, modify the startup command for your Minecraft server.
Example Command for Paper/Spigot/Purpur:
java -Xmx4G -Xms2G -javaagent:/opt/authlib-injector/authlib-injector.jar=https://authserver.visoftware.dev/authlib-injector -jar paper.jar noguiExample Command for Forge/Fabric:
java -Xmx4G -Xms2G -javaagent:/opt/authlib-injector/authlib-injector.jar=https://authserver.visoftware.dev/authlib-injector -jar fabric-server-launch.jar noguiExplanation:
-Xmx4G: Sets the maximum memory allocation (adjust as needed).-Xms2G: Sets the minimum memory allocation (adjust as needed).-javaagent:/opt/authlib-injector/authlib-injector.jar=https://authserver.visoftware.dev/authlib-injector: Loads theauthlib-injectoras a Java agent and redirects authentication requests.-jar paper.jar: Starts the Minecraft server (replace with your actual server JAR file).nogui: Runs the server without the graphical user interface.
4. Automate the Startup (Optional)
To automate the startup process, you can create a startup script:
Create a new script file:
nano start-minecraft.shAdd the following content:
#!/bin/bash java -Xmx4G -Xms2G -javaagent:/opt/authlib-injector/authlib-injector.jar=https://authserver.visoftware.dev/authlib-injector -jar paper.jar noguiSave the file (
CTRL + X, thenY, thenEnter).Give it execute permissions:
chmod +x start-minecraft.shStart your server using:
./start-minecraft.sh
5. Verify the Server is Using authlib-injector
authlib-injectorCheck the server logs (authlib-injector.log or console output) for messages related to authlib-injector. If it's working correctly, you should see output confirming that the authentication system is redirected.
✅ Done! Your Minecraft server is now using authlib-injector to authenticate via VI Software's Auth Server
authlib-injector to authenticate via VI Software's Auth ServerLast updated