mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Hot fix for creating new words file #317
This commit is contained in:
parent
4b1cbccf17
commit
3ea901d5c4
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>Jobs</groupId>
|
<groupId>Jobs</groupId>
|
||||||
<artifactId>jobs</artifactId>
|
<artifactId>jobs</artifactId>
|
||||||
<version>4.9.3</version>
|
<version>4.9.4</version>
|
||||||
<name>Jobs</name>
|
<name>Jobs</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -3,7 +3,6 @@ package com.gamingmesh.jobs.config;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@ -234,18 +233,14 @@ public class NameTranslatorManager {
|
|||||||
// Just copying default language files, except en, that one will be generated
|
// Just copying default language files, except en, that one will be generated
|
||||||
List<String> languages = new ArrayList<>();
|
List<String> languages = new ArrayList<>();
|
||||||
|
|
||||||
|
languages.clear();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
languages.addAll(LanguageManager.getClassesFromPackage("TranslatableWords", "messages_"));
|
languages.addAll(LanguageManager.getClassesFromPackage("TranslatableWords", "Words_"));
|
||||||
} catch (ClassNotFoundException e1) {
|
} catch (ClassNotFoundException e1) {
|
||||||
e1.printStackTrace();
|
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");
|
languages.add("en");
|
||||||
|
|
||||||
File customLocaleFile = new File(Jobs.getFolder(), "TranslatableWords" + File.separator + "Words_" + ls + ".yml");
|
File customLocaleFile = new File(Jobs.getFolder(), "TranslatableWords" + File.separator + "Words_" + ls + ".yml");
|
||||||
|
@ -3,7 +3,7 @@ description: Jobs Plugin for the BukkitAPI
|
|||||||
main: com.gamingmesh.jobs.Jobs
|
main: com.gamingmesh.jobs.Jobs
|
||||||
version: 4.9.4
|
version: 4.9.4
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
|
website: https://www.spigotmc.org/resources/4216/
|
||||||
author: phrstbrn
|
author: phrstbrn
|
||||||
softdepend: [Vault, MythicMobs, McMMO, WorldGuard, MyPet]
|
softdepend: [Vault, MythicMobs, McMMO, WorldGuard, MyPet]
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user