This commit is contained in:
Zeshan Aslam 2017-03-20 01:32:59 -04:00
parent b7c0fee9fd
commit 7acadf45aa
3 changed files with 6 additions and 9 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 {