forked from russjr08/MineOffline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.bat
More file actions
51 lines (42 loc) · 1.97 KB
/
Program.bat
File metadata and controls
51 lines (42 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
color 02
echo.
echo /-----------------------------------------------------------------------------\
echo [ Welcome to MineOffline Beta! ]
echo [ ]
echo [ Please choose an option to start the program. ]
echo \-----------------------------------------------------------------------------/
echo.
echo Program written by Methos319 and PeacemakerDawg.
echo.
echo.
:index
echo 1. Log in and download Minecraft files using Minecraft.exe.
echo 2. Choose a username to play Minecraft in offline mode.
set /p choice=
if '%choice%'=='1' goto :choice1
if '%choice%'=='2' goto :choice2
:choice1
REM copy Minecraft.exe "%USERPROFILE%\Desktop"
start "Minecraft.exe"
REM cd "%USERPROFILE%\Desktop"
echo Minecraft.exe will open shortly.
echo Please log in with an account to begin downloading Minecraft files.
REM "%cd%\minecraft.exe"
echo.
goto :choice2
:choice2
REM Stop harcoding paths! Just tell users to add Minecraft.exe to the MineOffline folder :P
REM This isn't needed :P cd "%USERPROFILE%\Desktop"
echo.
echo For this to work, you will need Java in your PATH variable. Most likely it is.
echo To start the Offline Mode Launcher, you'll need a username.
REM SET PROFILENAME=[Please enter desired username:]
set /p profilename=Please enter desired username: %=%
echo Your username is now: %profilename%
REM By using a * you're supplying more Java arguments... BAD! start java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft %profilename%
start java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\minecraft.jar;%APPDATA%\.minecraft\bin\lwjgl.jar;%APPDATA%\.minecraft\bin\lwjgl_util.jar;%APPDATA%\.minecraft\bin\jinput.jar" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft %profilename%
goto :end
:end
pause
EXIT