We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1888a commit 5641affCopy full SHA for 5641aff
src/dev/_2lstudios/viarewindpotions/utils/ConfigurationUtil.java
@@ -4,8 +4,6 @@
4
import org.bukkit.plugin.Plugin;
5
6
import java.io.File;
7
-import java.io.InputStream;
8
-import java.nio.file.Files;
9
10
public class ConfigurationUtil {
11
final private Plugin plugin;
@@ -20,8 +18,9 @@ public YamlConfiguration getConfiguration(String filePath) {
20
18
21
19
if (file.exists()) {
22
return YamlConfiguration.loadConfiguration(file);
+ } else {
+ return new YamlConfiguration();
23
}
24
- else return new YamlConfiguration();
25
26
27
0 commit comments