diff --git a/src/com/zeshanaslam/actionhealth/FileHandler.java b/src/com/zeshanaslam/actionhealth/FileHandler.java index 50e12f5..e4cf3f1 100644 --- a/src/com/zeshanaslam/actionhealth/FileHandler.java +++ b/src/com/zeshanaslam/actionhealth/FileHandler.java @@ -39,6 +39,12 @@ public class FileHandler { this.load(); } + public static boolean fileExists(String path) { + File file = new File(path); + + return file.exists(); + } + public String getName() { return file.getName(); } @@ -47,12 +53,6 @@ public class FileHandler { return file.getPath(); } - public static boolean fileExists(String path) { - File file = new File(path); - - return file.exists(); - } - private void load() { try { this.yaml.load(this.file); diff --git a/src/com/zeshanaslam/actionhealth/HealthCommand.java b/src/com/zeshanaslam/actionhealth/HealthCommand.java index 6ec7d09..61a7ea0 100644 --- a/src/com/zeshanaslam/actionhealth/HealthCommand.java +++ b/src/com/zeshanaslam/actionhealth/HealthCommand.java @@ -6,8 +6,6 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import java.io.File; - public class HealthCommand implements CommandExecutor { private final Main plugin; diff --git a/src/com/zeshanaslam/actionhealth/SettingsManager.java b/src/com/zeshanaslam/actionhealth/SettingsManager.java index 0261fe5..40ca8d3 100644 --- a/src/com/zeshanaslam/actionhealth/SettingsManager.java +++ b/src/com/zeshanaslam/actionhealth/SettingsManager.java @@ -5,7 +5,6 @@ import org.bukkit.Bukkit; import java.util.ArrayList; import java.util.HashMap; import java.util.List; -import java.util.UUID; public class SettingsManager {