Skip to content

Commit 0f7c939

Browse files
author
FungY911
committed
Update FileManager.java
1 parent 299f7ff commit 0f7c939

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void startup() throws UnknownHostException {
3939
ipaddr = reader.readLine();
4040
Main.getInstance().getLogger().info(ipaddr);
4141
} catch (Exception e) {
42-
Main.getInstance().getLogger().info("Failed to get your public ip. Returned error is:ww " + e.getMessage());
42+
Main.getInstance().getLogger().info("Failed to get your public ip. Returned error is: " + e.getMessage());
4343
}
4444
ipaddr.replace(" ", "");
4545
ipaddr.replace("[STDOUT]", "");
@@ -66,6 +66,6 @@ public void removeLogFile() {
6666
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_ss:mm:HH");
6767
String newFileName = dateFormat.format(new Date()) + ".log";
6868
File newFile = new File(Main.instance.getDataFolder(), "logs/" + newFileName);
69-
FileManager.logsFile.renameTo(newFile);
69+
logsFile.renameTo(newFile);
7070
}
7171
}

0 commit comments

Comments
 (0)