mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 13:33:11 +00:00
A whole load of fixes
This commit is contained in:
parent
c25eccf4a0
commit
75a5a76fe9
61 changed files with 401 additions and 626 deletions
|
@ -19,23 +19,18 @@ import java.util.Map;
|
|||
*/
|
||||
public class YamlTranslationFile extends TranslationFile {
|
||||
|
||||
private File path;
|
||||
private TranslationLanguage language;
|
||||
private String name;
|
||||
final private TranslationLanguage language;
|
||||
final private String name;
|
||||
final private TranslationManager manager;
|
||||
private File file;
|
||||
private HashMap<String, String> map;
|
||||
private String[] header;
|
||||
private boolean fancyHead = false;
|
||||
private YamlTranslationFile instance;
|
||||
private TranslationManager manager;
|
||||
|
||||
/**
|
||||
* Reload
|
||||
* YAML Object
|
||||
*/
|
||||
public void reload() {
|
||||
this.map = new HashMap<String, String>();
|
||||
this.read();
|
||||
}
|
||||
private Yaml yaml;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -45,7 +40,6 @@ public class YamlTranslationFile extends TranslationFile {
|
|||
* @param name project name
|
||||
*/
|
||||
public YamlTranslationFile(File path, TranslationLanguage language, String name, TranslationManager manager) {
|
||||
this.path = path;
|
||||
this.language = language;
|
||||
this.name = name;
|
||||
this.manager = manager;
|
||||
|
@ -68,6 +62,14 @@ public class YamlTranslationFile extends TranslationFile {
|
|||
this.instance = this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reload
|
||||
*/
|
||||
public void reload() {
|
||||
this.map = new HashMap<String, String>();
|
||||
this.read();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the header
|
||||
*
|
||||
|
@ -164,11 +166,6 @@ public class YamlTranslationFile extends TranslationFile {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* YAML Object
|
||||
*/
|
||||
private Yaml yaml;
|
||||
|
||||
/**
|
||||
* Get the YAML object
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue