Fixed not creating new lang resources
This commit is contained in:
parent
571fa366bc
commit
1c5402cf6e
@ -198,6 +198,9 @@ public final class STPlugin extends JavaPlugin implements CommandExecutor, Liste
|
||||
String[] languages = {"en", "hu"};
|
||||
for (String l : languages) {
|
||||
File langFile = new File(langFolder, l + ".yml");
|
||||
if (!langFile.exists()) {
|
||||
saveResource("lang/"+l+".yml", false);
|
||||
}
|
||||
ConfigUpdater.update(this, "lang/"+l+".yml", langFile, Collections.emptyList());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user