mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 09:10:01 +01:00
Touch the file, it works fine now.
This commit is contained in:
parent
b455e20811
commit
609b148157
@ -83,6 +83,8 @@ public class JsonCache {
|
||||
LimboPlayer limboPlayer = new LimboPlayer(name, location, operator, group, canFly, walkSpeed);
|
||||
try {
|
||||
File file = new File(cacheDir, id + File.separator + "cache.json");
|
||||
Files.createParentDirs(file);
|
||||
Files.touch(file);
|
||||
Files.write(gson.toJson(limboPlayer), file, Charsets.UTF_8);
|
||||
} catch (IOException e) {
|
||||
ConsoleLogger.logException("Failed to write " + player.getName() + " cache.", e);
|
||||
|
Loading…
Reference in New Issue
Block a user