pyCraft icon indicating copy to clipboard operation
pyCraft copied to clipboard

Batch File

Open ghost opened this issue 7 years ago • 5 comments

Is there a way to run a batch file command to run the program and in the batch file enter the account information from the batch file. To allow running it completely from a batch file.

ghost avatar Aug 07 '18 06:08 ghost

The start.py (that starts the minecraft client) accepts the following parameters:

--username USERNAME --password PASSWORD --server SERVER

the purpose of each parameter should be self explanatory.

TheSnoozer avatar Aug 09 '18 02:08 TheSnoozer

okay thank you

ghost avatar Aug 09 '18 21:08 ghost

I am trying to make it work with cracked servers. How do I make it not require a password automatically

ghost avatar Aug 09 '18 22:08 ghost

--username USERNAME --password PASSWORD --server SERVER --offline OFFLINE

zacholade avatar Aug 09 '18 22:08 zacholade

Note that running a process with a password in its command line can cause security problems, because, in some cases, this information is accessible to other users on the same system, which could result in the password being revealed. For this reason, I do not recommend using start.py to automatically log in to a Mojang account whose security is important.

Instead, read the password from a file that is not readable by any unauthorised person, as I do in mcchat2: https://github.com/joodicator/mcchat2/blob/124c27d8a1f94359202e9c581ec04db79f7d47e3/mcchat2.py#L70-L72 https://github.com/joodicator/mcchat2/blob/124c27d8a1f94359202e9c581ec04db79f7d47e3/mcchat2.py#L134-L144

joodicator avatar Aug 12 '18 20:08 joodicator