Configuration
config.yml
Full configuration reference with all available options:
# Enable debug logging
debug: false
log-events: true # Log every login and registration
# ============================================
# Authentication Settings
# ============================================
session-timeout: 30 # Minutes (0 = login every time)
max-login-attempts: 5 # Before kick
login-timeout: 60 # Seconds to authenticate (0 = unlimited)
min-password-length: 6
max-password-length: 32
require-strong-password: false # Uppercase + lowercase + number
max-accounts-per-ip: 3 # 0 = unlimited
allow-registration: true # false = only existing accounts can join
force-registration: true # false = registration is optional, players without an account just play
show-last-login: true # Date and address of the last login, after logging in
password:
refuse-common: true # Refuse the passwords listed in passwords.txt
# ============================================
# Player Restrictions (before login)
# ============================================
hide-unlogged-players: true # Invisible and hidden from the tab list
blindness-effect: true # Dark screen until login
block-movement: true # Position locked, head rotation OK
block-interactions: true # Chat, commands, blocks, inventory
hide-quit-if-not-logged: true # Hide quit message
allowed-commands: # /login, /register, /l, /reg, /captcha, /2fa, /recover, /email are always allowed
- "/help"
teleport-to-spawn: false # hold players at a fixed spot until they log in
spawn-location: # where that is; required if the above is true
world: "world"
x: 0.5
y: 64.0
z: 0.5
yaw: 0.0
pitch: 0.0
# ============================================
# Name Validation
# ============================================
name-validation:
enabled: true
pattern: "^[a-zA-Z0-9_]{3,16}$"
blocked-words:
- "admin"
- "moderator"
- "server"
- "console"
- "staff"
- "owner"
- "operator"
- "hack"
- "cheat"
# ============================================
# Premium Auto-Login
# ============================================
premium:
enabled: false
mode: "opt-in" # "strict" or "opt-in"
uuid-mode: "OFFLINE" # "OFFLINE" or "REAL"
proxy-grace-ms: 2000 # Proxy mode: wait for the proxy's profile (0 = off, max 10000)
# ============================================
# Security
# ============================================
notify-on-failed-login: true # xlogin.notify permission
ip-lock: false # Only allow login from last IP
security:
ip-ban-duration: 30 # Minutes
ip-rate-limit-max: 10 # Failed attempts before ban
ip-rate-limit-window: 10 # Minutes
account-rate-limit-max: 10 # Failed logins on one account in that window (0 = off)
refuse-connections-on-failure: true # Refuse everyone if XLogin cannot start
captcha:
enabled: false # Map captcha before /register
length: 5 # Characters, 3-8
max-attempts: 3 # Wrong answers before the connection is closed
connection-limit:
enabled: true
max-per-ip: 6 # Connections from one address...
window: 60 # ...inside this many seconds
# ============================================
# Messages Display
# ============================================
# Toggle chat messages on automatic authentication
# Only affects LOBBY/GAME servers (AUTH never shows messages)
messages:
login-prompt: true # Chat line asking for /login or /register on join
session-resumed: true # "Session resumed" on reconnect
premium-auto-logged: true # "Authenticated automatically" for premium
bedrock-auto-logged: true # The same for a Bedrock player
bedrock-auto-registered: true # A Bedrock account created on first join
login-success: true # "Successfully logged in" after /login
# Texts are lang/<code>.yml keys; only switches and timings live here
login-title:
enabled: true
keep-until-login: true # Kept on screen until the player authenticates (false = shown once for stay)
fade-in: 10 # Ticks
stay: 100
fade-out: 10
login-bossbar:
enabled: true
color: RED
login-actionbar:
enabled: true
# ============================================
# Proxy (BungeeCord / Velocity)
# ============================================
proxy:
enabled: false
role: AUTH # AUTH, LOBBY, or GAME
redirect-server: "lobby"
auth-server: "auth"
redirect-delay: 20 # Ticks
# ============================================
# Two-Factor Authentication
# ============================================
two-factor:
enabled: false
# ============================================
# Email Recovery
# ============================================
email-recovery:
enabled: false
smtp:
host: "smtp.gmail.com"
port: 587
username: ""
password: ""
from: "noreply@example.com"
tls: true # STARTTLS, required when on
code-expiry: 10
cooldown: 5
# ============================================
# Bedrock
# ============================================
bedrock:
auto-login: true
# ============================================
# Update Checker
# ============================================
update:
check: true
notifications: true