diff --git a/src/main/java/net/slqmy/template_paper_plugin/data/player/PlayerDataManager.java b/src/main/java/net/slqmy/template_paper_plugin/data/player/PlayerDataManager.java index 8f97f1f2..c9e9ef09 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/data/player/PlayerDataManager.java +++ b/src/main/java/net/slqmy/template_paper_plugin/data/player/PlayerDataManager.java @@ -51,10 +51,8 @@ private void load() { UUID playerUuid = UUID.fromString(playerUuidString); PlayerProfile profile; - FileReader reader; - try { - reader = new FileReader(playerDataFile); + FileReader reader = new FileReader(playerDataFile); profile = gson.fromJson(reader, PlayerProfile.class); @@ -83,12 +81,10 @@ public void save() { File file = new File(playerDataFolderPath + File.separator + uuid.toString() + playerDataFilesExtension); - FileWriter writer; - try { file.createNewFile(); - writer = new FileWriter(file); + FileWriter writer = new FileWriter(file); String json = gson.toJson(profile);