Migration & Database

AuthMe Migration

To import accounts from an AuthMe database:

/xlogin import authme <table_name>

Important notes:

  • The AuthMe table must be in the same database as XCore.
  • Passwords are not migrated (different hash format). Imported players will need to reset their password via /changepassword or an admin can use /xlogin resetpassword.
  • Only players who already exist in XCore's xcore_players table are imported.
  • Duplicate accounts (already registered in XLogin) are skipped.

Database Tables

TableDescription
xlogin_accountsPlayer accounts (UUID, name, password hash, IPs, login count, premium flag, Mojang UUID, email)
xlogin_sessionsActive sessions for cross-server auto-login (UUID, IP, timestamp)
xlogin_ip_bansTemporarily banned IPs (IP, reason, expiry)
xlogin_2fa2FA TOTP secrets (UUID, secret key, enabled date)

All tables are created automatically on first startup. Column migrations are applied automatically.