Improved server creation to not require the "minecraft" jar group to be present.

This commit is contained in:
Marcus Whybrow 2012-06-05 19:39:22 +01:00
parent af15359935
commit 4addb6dd9a

View File

@ -707,7 +707,11 @@ server_create() {
# to ensure it is recognised.
init
server_set_jar "$(server_get_id "$1")" "minecraft"
# TODO: Handle server default setup stuff better than just using
# the "minecraft" jar group. And make it configurable.
if [ -d "$JAR_STORAGE_PATH/minecraft" ]; then
server_set_jar "$(server_get_id "$1")" "minecraft"
fi
fi
else
return 1