From 596c93fb2dfbddd27aec1a84f9d2d8e073231fc8 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 10 Feb 2021 22:37:47 +0300 Subject: [PATCH] add player name user input and add shebang --- unix/mc_start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/mc_start.sh b/unix/mc_start.sh index 6d8e490..77384e4 100644 --- a/unix/mc_start.sh +++ b/unix/mc_start.sh @@ -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