Getting Started
Overview
XLogin is a complete authentication system for Minecraft servers running XCore. It provides login/register functionality, premium auto-login, two-factor authentication, cross-server sessions, email recovery, and proxy support.
XLogin supports two distinct modes for premium authentication:
- Standalone mode — Directly injects into the server's Netty pipeline to perform per-player online-mode verification (same technique as JPremium). Requires
online-mode=falseinserver.properties: XLogin runs the Mojang handshake itself, one player at a time, and a server already in online-mode runs a second one — the client is then disconnected with Tried to switch to AUTHORIZING from ENCRYPTING. Premium auto-login refuses to start and says so when it detects online-mode. - Proxy mode — The same
XLogin.jaron Velocity/BungeeCord handles premium verification, session checking, and smart routing. Backend servers handle login/register and restrictions.
Requirements
- Paper 1.21.1+ (or Folia)
- Java 21+
- XCore 2.0+ installed as a plugin, updated first: XLogin 2.0 does not load on an older XCore
- For proxy mode: Velocity 3.3+ or BungeeCord (same JAR on proxy + backends)
If XLogin cannot start — XCore itself down (its database unreachable at boot, a wrong password), a database error of its own — it stays enabled with nothing but a lockdown: every connection is refused with the auth-unavailable message until a start succeeds, instead of letting players in unchecked. XCore also refuses connections from its own start until XLogin is running, on any server where XLogin is installed, so a missing or broken XLogin jar does not open the server either. Set security.refuse-connections-on-failure: false to keep the server reachable, with no authentication at all, in that case. Running the server without XLogin on purpose is addons.XLogin: false in plugins/XCore/addons.yml.
Installation
- Install XCore in your server's
plugins/folder. - Place
XLogin.jarinplugins/too, like any plugin. - Start the server. XLogin generates its config in
plugins/XLogin/. - Edit
config.ymlandlang/<code>.ymlto match your setup. - Restart or use
/xlogin reload.
For proxy networks, see the Proxy Setup guide.
Upgrading from 1.x
Since 2.0, XLogin is a plugin of its own rather than an XCore addon. Its jar goes in plugins/ and the old one comes out of plugins/XCore/addons/; on its first start it moves its folder from plugins/XCore/addons/XLogin/ to plugins/XLogin/, with every setting and passwords.txt. The database does not change. Update XCore in the same stop, and on a network update the proxy and every backend together: they must run the same XLogin version. Commands keep their names, and their namespaced forms become /xlogin:login, /xlogin:register and so on instead of /xcore:login.
The steps, what to do on a network and how to roll back are on XCore's Upgrading to 2.0 page.