diff options
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 { |