allow to use legacy token in config

This commit is contained in:
əlemi 2022-04-18 20:06:42 +02:00
parent af4cf7db90
commit 016e4170df
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -121,6 +121,9 @@ class Treepuncher(
username= opt('username') or name,
password= opt('password')
)
if opt('legacy_token'):
authenticator.deserialize(json.loads(opt('mojang_token')))
else:
authenticator = MicrosoftAuthenticator(
client_id= opt('client_id'),