From fd5776dd152b72b3d148bdab8cbd48fc26eed8a5 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Wed, 11 Dec 2013 15:53:56 +0400 Subject: [PATCH] Remove pointless things, i will rewrite config later --- src/com/cnaude/chairs/Chairs.java | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/com/cnaude/chairs/Chairs.java b/src/com/cnaude/chairs/Chairs.java index 3165e13..1c3c841 100644 --- a/src/com/cnaude/chairs/Chairs.java +++ b/src/com/cnaude/chairs/Chairs.java @@ -36,8 +36,6 @@ public class Chairs extends JavaPlugin { public int sitHealthPerInterval; public int sitEffectInterval; public HashSet disabledRegions = new HashSet(); - private File pluginFolder; - private File configFile; private Logger log; public PluginManager pm; public ChairsIgnoreList ignoreList; @@ -51,8 +49,6 @@ public class Chairs extends JavaPlugin { ignoreList.load(); pm = this.getServer().getPluginManager(); pluginFolder = getDataFolder(); - configFile = new File(pluginFolder, "config.yml"); - createConfig(); getConfig().options().copyDefaults(true); saveConfig(); loadConfig(); @@ -88,24 +84,6 @@ public class Chairs extends JavaPlugin { chairEffects.restart(); } } - - private void createConfig() { - if (!pluginFolder.exists()) { - try { - pluginFolder.mkdir(); - } catch (Exception e) { - logInfo("ERROR: " + e.getMessage()); - } - } - - if (!configFile.exists()) { - try { - configFile.createNewFile(); - } catch (Exception e) { - logInfo("ERROR: " + e.getMessage()); - } - } - } protected HashMap sit = new HashMap(); protected HashMap sitblock = new HashMap();