feat: use easyauth in offline mode
This commit is contained in:
parent
b34b4bf153
commit
42833c22fb
4 changed files with 143 additions and 4 deletions
51
configs/easyauth-main.conf
Normal file
51
configs/easyauth-main.conf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
## ##
|
||||
## EasyAuth ##
|
||||
## Main Configuration ##
|
||||
## ##
|
||||
|
||||
# Don't auto-login players with Microsoft accounts — treat everyone the same
|
||||
premium-auto-login = false
|
||||
|
||||
# All players are offline players
|
||||
offline-by-default = true
|
||||
|
||||
# No Bedrock auto-login
|
||||
floodgate-auto-login = false
|
||||
|
||||
# Session timeout: 24 hours (if they reconnect within this time, no re-login needed)
|
||||
session-timeout = 86400
|
||||
|
||||
# Max login attempts before kick
|
||||
max-login-tries = 3
|
||||
|
||||
# 5 minutes to authenticate before being kicked
|
||||
kick-timeout = 300
|
||||
|
||||
# 2 minutes before they can rejoin after being kicked for failed attempts
|
||||
reset-login-attempts-timeout = 120
|
||||
|
||||
# Registration is disabled for players — admin-only via `auth register <user> <pass>`
|
||||
# With enable-global-password=true and single-use-global-password=false,
|
||||
# the /register command is disabled. Players can only /login with a password set by admin.
|
||||
enable-global-password = true
|
||||
single-use-global-password = false
|
||||
|
||||
# Hide player coordinates during auth (teleport to spawn)
|
||||
hide-player-coords = true
|
||||
|
||||
# Hide unauthenticated players from everyone (requires Vanish mod)
|
||||
vanish-until-auth = true
|
||||
|
||||
# Auth spawn location — players teleported here until authenticated
|
||||
world-spawn {
|
||||
dimension = "minecraft:overworld"
|
||||
x = -1965
|
||||
y = 167
|
||||
z = 1109
|
||||
yaw = 0
|
||||
pitch = 0
|
||||
}
|
||||
|
||||
debug = false
|
||||
|
||||
config-version = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue