We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e95e2 commit ef1bc24Copy full SHA for ef1bc24
bin/tools/Base.sh
@@ -13,7 +13,7 @@ export TIME_STYLE='+%Y-%m-%d %H:%M:%S'
13
# 检查应该生效哪一个配置, 对应的优先级关系为: 当前工作目录(WorkDir), config中指定的工作目录(GamePath)
14
15
# 加载局部配置覆盖全局配置, 当前目录中的minecraftctl.conf文件优先级最高
16
-if [ -e "${WorkDir}/minecraftctl.conf" ]; then
+if [[ -e "${WorkDir}/minecraftctl.conf" || -e "${WorkDir}/.env" ]]; then
17
GamePath=$WorkDir
18
fi
19
# 如果工作目录没有被创建,就前往配置中的目录
@@ -25,6 +25,11 @@ if [ -e "${GamePath}/minecraftctl.conf" ]; then
25
source minecraftctl.conf
26
cd "${WorkDir}"
27
28
+if [ -e "${GamePath}/.env" ]; then
29
+ cd "${GamePath}"
30
+ source "${GamePath}/.env"
31
+ cd "${WorkDir}"
32
+fi
33
cd ${GamePath}
34
35
# i18n文件内容缓存
0 commit comments