diff --git a/minetest-server.sh b/minetest-server.sh index 64e0f47..f5ed137 100644 --- a/minetest-server.sh +++ b/minetest-server.sh @@ -15,6 +15,8 @@ main (){ compileMinetest copyConfMinetestServer downloadMinetest_game + downloadIkea_game + downloadRpgtest_game } isOK (){ @@ -80,7 +82,23 @@ downloadMinetest_game (){ isOK } +downloadIkea_game (){ + taskName="Download rpgtest game"; echo -e "\n[+][$taskName]" + rm -rf /usr/local/share/minetest/games/ikea + git clone https://gitlab.com/benrob0329/ikea.git /usr/local/share/minetest/games/ikea + isOK +} + +downloadRpgtest_game (){ + taskName="Download rpgtest game"; echo -e "\n[+][$taskName]" + rm -rf /usr/local/share/minetest/games/rpgtest + git clone https://github.com/cdqwertz/rpgtest /usr/local/share/minetest/games/rpgtest + isOK +} + main -echo "To run the server. Example:" -echo "minetestserver --config /etc/minetest/minetest.conf --world /usr/local/share/minetest/games/" +echo -e "\n" +echo "To run the server. Examples:" +echo "minetestserver --config /etc/minetest/minetest.conf --world /usr/local/share/minetest/games/" +echo "minetestserver --config /etc/minetest/minetest.conf --gameid rpgtest"