Skip to content

Commit 05cd047

Browse files
committed
Example file
1 parent 3da365c commit 05cd047

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/tk/fungy/wsformc/FileManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ public void startup() throws UnknownHostException {
7575
}
7676
if (!logsFolder.exists()) logsFolder.mkdir();
7777
if(!webFolder.exists()) webFolder.mkdir();
78-
saveMyResource("index.html", false);
78+
saveMyResource("index.html", "/web/", false);
7979
}
8080

81-
public void saveMyResource(String resourceName, boolean replace) {
81+
public void saveMyResource(String resourceName, String destination, boolean replace) {
8282
// Get the plugin's data folder
8383
File dataFolder = Main.instance.getDataFolder();
8484

8585
// Create the destination file
86-
File destFile = new File(dataFolder, resourceName);
86+
File destFile = new File(dataFolder + destination, resourceName);
8787

8888
// If the file already exists and 'replace' is false, return early
8989
if (destFile.exists() && !replace) {

0 commit comments

Comments
 (0)