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) {
e.printStackTrace();
}
new ConfigManager(this);
new ConfigManager();
new GeneralMethods(this);
updater = new Updater(this, "http://projectkorra.com/forum/forums/dev-builds.16/index.rss");
new Commands(this);

View file

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