This commit is contained in:
GeorgH93 2018-04-30 02:03:06 +02:00
parent d663fb1d22
commit d477b2ed76
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -17,6 +17,7 @@
package at.pcgamingfreaks.Minepacks.Bukkit.Database;
import at.pcgamingfreaks.YamlFileManager;
import at.pcgamingfreaks.yaml.YAML;
import org.bukkit.ChatColor;
@ -38,11 +39,11 @@ public Language(JavaPlugin plugin)
protected void doUpdate() {}
@Override
protected void doUpgrade(at.pcgamingfreaks.Language oldLang)
protected void doUpgrade(YamlFileManager oldLang)
{
if(oldLang.getVersion() < 10) // Pre v2.0 versions
{
YAML oldYAML = oldLang.getLang(), newYAML = getLang();
YAML oldYAML = oldLang.getYaml(), newYAML = getLang();
Map<String, String> simpleConverter = new LinkedHashMap<>(), advancedConverter = new LinkedHashMap<>();
String[] keys;
String helper;