Fixed a dumb config issue.

This commit is contained in:
Adam committed 2012-05-13 23:45:53 -04:00
1 parent 1d1bb0a962
commit 94fb44c005
1 file changed
+7 -6
@@ -57,18 +57,19 @@ public class Anticheat extends JavaPlugin
public void onEnable() public void onEnable()
{ {
plugin = this; plugin = this;
config = AnticheatManager.CONFIGURATION; if(!new File(this.getDataFolder()+"\\config.yml").exists())
verbose = config.verboseStartup();
updateFolder = config.updateFolder();
checkForUpdate();
if(!new File("plugins/AntiCheat/config.yml").exists())
{ {
saveDefaultConfig();
if(verbose) if(verbose)
{ {
logger.log(Level.INFO,"[AC] Config file created"); logger.log(Level.INFO,"[AC] Config file created");
} }
saveDefaultConfig();
} }
config = AnticheatManager.CONFIGURATION;
verbose = config.verboseStartup();
updateFolder = config.updateFolder();
checkForUpdate();
eventList.add(new PlayerListener()); eventList.add(new PlayerListener());
eventList.add(new BlockListener()); eventList.add(new BlockListener());
eventList.add(new EntityListener()); eventList.add(new EntityListener());