Fixed not creating new lang resources

This commit is contained in:
LabodiDavid 2025-03-28 19:35:17 +01:00
parent 571fa366bc
commit 1c5402cf6e

View File

@ -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());
}