change all usage of getOnlinePlayers

This commit is contained in:
DNx5
2015-09-14 19:50:32 +07:00
parent 8701733b30
commit 7c56dec476
9 changed files with 22 additions and 24 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ public class JsonCache {
try {
String data = gson.toJson(playerData);
Files.write(Paths.get(file.getPath()), data.getBytes());
Files.write(file.toPath(), data.getBytes());
} catch (IOException e) {
e.printStackTrace();
}
@@ -78,7 +78,7 @@ public class JsonCache {
File file = new File(cacheDir, path + File.separator + "cache.json");
try {
byte[] bytes = Files.readAllBytes(Paths.get(file.getPath()));
byte[] bytes = Files.readAllBytes(file.toPath());
String str = new String(bytes);
return gson.fromJson(str, DataFileCache.class);
} catch (Exception e) {