add player name user input

and add shebang
This commit is contained in:
Alexander Popov 2021-02-10 22:37:47 +03:00
parent 65d4d25ccc
commit 596c93fb2d

View File

@ -1,5 +1,9 @@
#!/bin/sh
echo -ne "\033]2;Minecraft Launcher\007"
# Set username
read -p "What username would you like?: " player
# A minecraft root directory
MC_DIR=~/.minecraft
@ -19,7 +23,7 @@ GAME_VERSION=1.16.5
NATIVES_DIR=$MC_DIR/bin/$GAME_VERSION
# Player name
PLAYER_NAME=Steve
PLAYER_NAME=$player
# Game window resolution
WINDOW_W=800