File tree 4 files changed +11
-2
lines changed
java/net/kunmc/lab/schemuploader
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >net.kunmc.lab</groupId >
8
8
<artifactId >SchemUploader</artifactId >
9
- <version >1.3 -SNAPSHOT</version >
9
+ <version >1.4 -SNAPSHOT</version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >SchemUploader</name >
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ public class PluginConfig {
41
41
*/
42
42
public static String downloadUrlErrorMessage ;
43
43
44
+ /**
45
+ * schematicsフォルダのパス
46
+ */
47
+ public static String fileFolderPath ;
48
+
44
49
/**
45
50
* プラグインの設定を読み込む
46
51
*
@@ -56,6 +61,7 @@ public static void loadConfig(Configuration config) {
56
61
downloadUrlRestrictionEnabled = config .getBoolean ("download.url-restriction.enabled" , true );
57
62
downloadUrlPrefix = config .getString ("download.url-restriction.prefix" );
58
63
downloadUrlErrorMessage = config .getString ("download.url-restriction.error-message" , "エラー: URL制限" );
64
+ fileFolderPath = config .getString ("file.folder-path" , "plugins/WorldEdit/schematics" );
59
65
}
60
66
61
67
/**
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public void onEnable() {
39
39
}
40
40
41
41
// schematicフォルダ
42
- schematicFolder = new File (SCHEMATIC_FOLDER );
42
+ schematicFolder = new File (PluginConfig . fileFolderPath );
43
43
44
44
// コマンドを登録する
45
45
CommandListener .register ();
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ download:
19
19
prefix : https://cdn.discordapp.com/attachments/xxxxxxxxxxxxxxxxxx/
20
20
# ダウンロード用のURL制限に引っかかった場合に表示されるエラーメッセージ
21
21
error-message : Discord内の「#schem置き場」チャンネルにあるschematicファイルのみダウンロードできます。誤ったリンクをコピーしている可能性があります。URLを見直してください。
22
+ file :
23
+ # schematicsフォルダのパス
24
+ folder-path : plugins/WorldEdit/schematics
You can’t perform that action at this time.
0 commit comments