public Template(String directory, String filename) {
    this.tpl = new YamlConfiguration();
    try {
    	file = new File(directory, filename);
		this.tpl.load(file);
		upgrade(file);
	} catch (FileNotFoundException e) {
		e.printStackTrace();
	} catch (IOException e) {
		e.printStackTrace();
	} catch (InvalidConfigurationException e) {
		e.printStackTrace();
	}

    
  }