mirror of
https://github.com/zeshan321/ActionHealth.git
synced 2024-06-23 13:14:59 +02:00
Clean up
This commit is contained in:
parent
b7c0fee9fd
commit
7acadf45aa
|
@ -39,6 +39,12 @@ public class FileHandler {
|
||||||
this.load();
|
this.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean fileExists(String path) {
|
||||||
|
File file = new File(path);
|
||||||
|
|
||||||
|
return file.exists();
|
||||||
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return file.getName();
|
return file.getName();
|
||||||
}
|
}
|
||||||
|
@ -47,12 +53,6 @@ public class FileHandler {
|
||||||
return file.getPath();
|
return file.getPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean fileExists(String path) {
|
|
||||||
File file = new File(path);
|
|
||||||
|
|
||||||
return file.exists();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void load() {
|
private void load() {
|
||||||
try {
|
try {
|
||||||
this.yaml.load(this.file);
|
this.yaml.load(this.file);
|
||||||
|
|
|
@ -6,8 +6,6 @@ import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
public class HealthCommand implements CommandExecutor {
|
public class HealthCommand implements CommandExecutor {
|
||||||
|
|
||||||
private final Main plugin;
|
private final Main plugin;
|
||||||
|
|
|
@ -5,7 +5,6 @@ import org.bukkit.Bukkit;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class SettingsManager {
|
public class SettingsManager {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user