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,8 +707,12 @@ server_create() {
# to ensure it is recognised. # to ensure it is recognised.
init init
# 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" server_set_jar "$(server_get_id "$1")" "minecraft"
fi fi
fi
else else
return 1 return 1
fi fi