Remove pointless things, i will rewrite config later
This commit is contained in:
		| @@ -36,8 +36,6 @@ public class Chairs extends JavaPlugin { | |||||||
|     public int sitHealthPerInterval; |     public int sitHealthPerInterval; | ||||||
|     public int sitEffectInterval; |     public int sitEffectInterval; | ||||||
|     public HashSet<String> disabledRegions = new HashSet<String>(); |     public HashSet<String> disabledRegions = new HashSet<String>(); | ||||||
|     private File pluginFolder; |  | ||||||
|     private File configFile;     |  | ||||||
|     private Logger log; |     private Logger log; | ||||||
|     public PluginManager pm; |     public PluginManager pm; | ||||||
|     public ChairsIgnoreList ignoreList;  |     public ChairsIgnoreList ignoreList;  | ||||||
| @@ -51,8 +49,6 @@ public class Chairs extends JavaPlugin { | |||||||
|         ignoreList.load(); |         ignoreList.load(); | ||||||
|         pm = this.getServer().getPluginManager(); |         pm = this.getServer().getPluginManager(); | ||||||
|         pluginFolder = getDataFolder(); |         pluginFolder = getDataFolder(); | ||||||
|         configFile = new File(pluginFolder, "config.yml"); |  | ||||||
|         createConfig(); |  | ||||||
|         getConfig().options().copyDefaults(true); |         getConfig().options().copyDefaults(true); | ||||||
|         saveConfig(); |         saveConfig(); | ||||||
|         loadConfig(); |         loadConfig(); | ||||||
| @@ -89,24 +85,6 @@ public class Chairs extends JavaPlugin { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     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<String, Entity> sit = new HashMap<String, Entity>(); |     protected HashMap<String, Entity> sit = new HashMap<String, Entity>(); | ||||||
|     protected HashMap<Block, String> sitblock = new HashMap<Block, String>(); |     protected HashMap<Block, String> sitblock = new HashMap<Block, String>(); | ||||||
|     protected HashMap<String, Block> sitblockbr = new HashMap<String, Block>(); |     protected HashMap<String, Block> sitblockbr = new HashMap<String, Block>(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Shevchik
					Shevchik