mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Ready for Minecraft 1.12
This commit is contained in:
1 parent
2d064ee849
commit
f609758d28
9 files changed
+73
-29
No files matched your search
@@ -26,6 +26,7 @@ import com.rammelkast.anticheatreloaded.config.yaml.CommentedConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
public class ConfigurationFile {
|
||||
|
||||
@@ -59,7 +60,13 @@ public class ConfigurationFile {
|
||||
this.saveDefault = saveDefault;
|
||||
|
||||
if (saveDefault) {
|
||||
defaultConfigFile = YamlConfiguration.loadConfiguration(plugin.getResource(fileName));
|
||||
InputStreamReader reader = new InputStreamReader(plugin.getResource(fileName));
|
||||
defaultConfigFile = YamlConfiguration.loadConfiguration(reader);
|
||||
try {
|
||||
reader.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
load();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user