aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-10-11 20:54:24 +0200
committerFlorian Rinke <develop@torui.de>2021-10-11 20:54:24 +0200
commit3e28db2478b08d54cdf63ddec86b4446e41ff6b2 (patch)
treee3fe0aff06602a869068f0d36d18993b1d478e40 /src/main/java/de
parent6dfae693d8682f55d1c5311b3b62b389e7b7a9bf (diff)
downloadCOFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.tar.gz
COFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.tar.bz2
COFL-3e28db2478b08d54cdf63ddec86b4446e41ff6b2.zip
fix reset
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java5
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 {