mirror of
https://github.com/zeshan321/ActionHealth.git
synced 2024-11-10 13:00:01 +01:00
Clean up
This commit is contained in:
parent
b7c0fee9fd
commit
7acadf45aa
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user