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
+9 -8
@@ -57,18 +57,19 @@ public class Anticheat extends JavaPlugin
public void onEnable() public void onEnable()
{ {
plugin = this; plugin = this;
if(!new File(this.getDataFolder()+"\\config.yml").exists())
{
saveDefaultConfig();
if(verbose)
{
logger.log(Level.INFO,"[AC] Config file created");
}
}
config = AnticheatManager.CONFIGURATION; config = AnticheatManager.CONFIGURATION;
verbose = config.verboseStartup(); verbose = config.verboseStartup();
updateFolder = config.updateFolder(); updateFolder = config.updateFolder();
checkForUpdate(); checkForUpdate();
if(!new File("plugins/AntiCheat/config.yml").exists())
{
if(verbose)
{
logger.log(Level.INFO,"[AC] Config file created");
}
saveDefaultConfig();
}
eventList.add(new PlayerListener()); eventList.add(new PlayerListener());
eventList.add(new BlockListener()); eventList.add(new BlockListener());
eventList.add(new EntityListener()); eventList.add(new EntityListener());