1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00

Hot fix for creating new words file #317

This commit is contained in:
montlikadani 2018-12-24 13:34:37 +01:00
parent 4b1cbccf17
commit 3ea901d5c4
3 changed files with 5 additions and 10 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>4.9.3</version>
<version>4.9.4</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>
<properties>

View File

@ -3,7 +3,6 @@ package com.gamingmesh.jobs.config;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
@ -234,18 +233,14 @@ public class NameTranslatorManager {
// Just copying default language files, except en, that one will be generated
List<String> languages = new ArrayList<>();
languages.clear();
try {
languages.addAll(LanguageManager.getClassesFromPackage("TranslatableWords", "messages_"));
languages.addAll(LanguageManager.getClassesFromPackage("TranslatableWords", "Words_"));
} catch (ClassNotFoundException e1) {
e1.printStackTrace();
}
for (Iterator<String> e1 = Jobs.getLanguageManager().getLanguages().iterator(); e1.hasNext();) {
String lang = e1.next();
YmlMaker langFile = new YmlMaker(Jobs.getInstance(), "TranslatableWords" + File.separator + "Words_" + lang + ".yml");
langFile.saveDefaultConfig();
}
languages.clear();
languages.add("en");
File customLocaleFile = new File(Jobs.getFolder(), "TranslatableWords" + File.separator + "Words_" + ls + ".yml");

View File

@ -3,7 +3,7 @@ description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.Jobs
version: 4.9.4
api-version: 1.13
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
website: https://www.spigotmc.org/resources/4216/
author: phrstbrn
softdepend: [Vault, MythicMobs, McMMO, WorldGuard, MyPet]
commands: