feat: allow passing session/auth server overrides
This commit is contained in:
parent
3b7aa42e0b
commit
e20f7a967f
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ class Treepuncher(
|
||||||
elif opt('legacy', default=False, t=bool):
|
elif opt('legacy', default=False, t=bool):
|
||||||
authenticator = MojangAuthenticator(
|
authenticator = MojangAuthenticator(
|
||||||
username= opt('username', default=name, required=True),
|
username= opt('username', default=name, required=True),
|
||||||
password= opt('password')
|
password= opt('password'),
|
||||||
|
session_server_override= opt('session_server_override'),
|
||||||
|
auth_server_override= opt('auth_server_override'),
|
||||||
)
|
)
|
||||||
if opt('legacy_token'):
|
if opt('legacy_token'):
|
||||||
authenticator.deserialize(json.loads(opt('legacy_token')))
|
authenticator.deserialize(json.loads(opt('legacy_token')))
|
||||||
|
|
Loading…
Reference in a new issue