diff --git a/minetest-server.sh b/minetest-server.sh index 77f1f05..64e0f47 100644 --- a/minetest-server.sh +++ b/minetest-server.sh @@ -14,6 +14,7 @@ main (){ extractMinetest compileMinetest copyConfMinetestServer + downloadMinetest_game } isOK (){ @@ -72,5 +73,14 @@ copyConfMinetestServer (){ isOK } +downloadMinetest_game (){ + taskName="Download example game. BASE GAME: minetest_game"; echo -e "\n[+][$taskName]" + rm -rf /usr/local/share/minetest/games/minetest_game + git clone https://github.com/minetest/minetest_game /usr/local/share/minetest/games/minetest_game + isOK +} + main +echo "To run the server. Example:" +echo "minetestserver --config /etc/minetest/minetest.conf --world /usr/local/share/minetest/games/"