From 4addb6dd9aa1ef86f8182f2feeb23fc0ec421567 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 5 Jun 2012 19:39:22 +0100 Subject: [PATCH] Improved server creation to not require the "minecraft" jar group to be present. --- init/msm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/msm b/init/msm index 3694846..0b69ea4 100755 --- a/init/msm +++ b/init/msm @@ -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