diff --git a/script/minecraft b/script/minecraft index 4a4b0a0..b1c686d 100644 --- a/script/minecraft +++ b/script/minecraft @@ -218,7 +218,13 @@ mc_thinoutbackup() { mc_exec() { if is_running; then - screen -p 0 -S $(cat $MCPATH/screen.name) -X stuff "$@$(printf \\r)" + execargs="" + for arg in $@ + do + execargs+="$arg " + done + + screen -p 0 -S $(cat $MCPATH/screen.name) -X stuff "$execargs$(printf \\r)" else echo "$SERVICE was not running. Not executing command." fi