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
/changepasswordor an admin can use/xlogin resetpassword. - Only players who already exist in XCore's
xcore_playerstable are imported. - Duplicate accounts (already registered in XLogin) are skipped.
Database Tables
| Table | Description |
|---|---|
xlogin_accounts | Player accounts (UUID, name, password hash, IPs, login count, premium flag, Mojang UUID, email) |
xlogin_sessions | Active sessions for cross-server auto-login (UUID, IP, timestamp) |
xlogin_ip_bans | Temporarily banned IPs (IP, reason, expiry) |
xlogin_2fa | 2FA TOTP secrets (UUID, secret key, enabled date) |
All tables are created automatically on first startup. Column migrations are applied automatically.