diff options
author | Florian Rinke <develop@torui.de> | 2021-10-11 20:54:24 +0200 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-10-11 20:54:24 +0200 |
commit | 3e28db2478b08d54cdf63ddec86b4446e41ff6b2 (patch) | |
tree | e3fe0aff06602a869068f0d36d18993b1d478e40 /src | |
parent | 6dfae693d8682f55d1c5311b3b62b389e7b7a9bf (diff) | |
download | COFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.tar.gz COFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.tar.bz2 COFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.zip |
fix reset
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java index ebff38a..49f18f7 100644 --- a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java +++ b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java @@ -101,7 +101,10 @@ public class CoflSessionManager { } public static void DeleteAllCoflSessions() { Path path =GetTempFileFolder(); - path.toFile().delete(); + File[] sessions = path.toFile().listFiles(); + for(File f : sessions) { + f.delete(); + } } public static CoflSession GetCoflSession(String username) throws IOException { |