Merge pull request #231 from DotDashh/master

Remove useless 'plugin' field in ConfigManager.
This commit is contained in:
OmniCypher 2015-09-04 16:27:00 -07:00
commit 8c2bcdc1d0
2 changed files with 2 additions and 4 deletions

View file

@ -49,7 +49,7 @@ public class ProjectKorra extends JavaPlugin {
catch (SecurityException | IOException e) { catch (SecurityException | IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
new ConfigManager(this); new ConfigManager();
new GeneralMethods(this); new GeneralMethods(this);
updater = new Updater(this, "http://projectkorra.com/forum/forums/dev-builds.16/index.rss"); updater = new Updater(this, "http://projectkorra.com/forum/forums/dev-builds.16/index.rss");
new Commands(this); new Commands(this);

View file

@ -11,10 +11,8 @@ public class ConfigManager {
public static Config deathMsgConfig; public static Config deathMsgConfig;
public static Config defaultConfig; public static Config defaultConfig;
static ProjectKorra plugin;
public ConfigManager(ProjectKorra plugin) { public ConfigManager() {
ConfigManager.plugin = plugin;
deathMsgConfig = new Config(new File("deathmessages.yml")); deathMsgConfig = new Config(new File("deathmessages.yml"));
defaultConfig = new Config(new File("config.yml")); defaultConfig = new Config(new File("config.yml"));
configCheck(ConfigType.DEFAULT); configCheck(ConfigType.DEFAULT);