mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-31 18:17:49 +01:00
Bugfix
This commit is contained in:
parent
d663fb1d22
commit
d477b2ed76
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
package at.pcgamingfreaks.Minepacks.Bukkit.Database;
|
package at.pcgamingfreaks.Minepacks.Bukkit.Database;
|
||||||
|
|
||||||
|
import at.pcgamingfreaks.YamlFileManager;
|
||||||
import at.pcgamingfreaks.yaml.YAML;
|
import at.pcgamingfreaks.yaml.YAML;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
@ -38,11 +39,11 @@ public Language(JavaPlugin plugin)
|
|||||||
protected void doUpdate() {}
|
protected void doUpdate() {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doUpgrade(at.pcgamingfreaks.Language oldLang)
|
protected void doUpgrade(YamlFileManager oldLang)
|
||||||
{
|
{
|
||||||
if(oldLang.getVersion() < 10) // Pre v2.0 versions
|
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<>();
|
Map<String, String> simpleConverter = new LinkedHashMap<>(), advancedConverter = new LinkedHashMap<>();
|
||||||
String[] keys;
|
String[] keys;
|
||||||
String helper;
|
String helper;
|
||||||
|
Loading…
Reference in New Issue
Block a user