Cleanup ItemNameResolver generation

This commit is contained in:
GeorgH93 2022-05-17 21:29:37 +02:00
parent eda74e4da4
commit a9c930b393
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 GeorgH93
* Copyright (C) 2022 GeorgH93
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -65,20 +65,7 @@ public ItemFilter(final Minepacks plugin)
/*if[STANDALONE]
itemNameResolver = new ItemNameResolver();
if (at.pcgamingfreaks.Bukkit.MCVersion.isOlderThan(at.pcgamingfreaks.Bukkit.MCVersion.MC_1_13))
{
at.pcgamingfreaks.Bukkit.Language itemNameLanguage = new at.pcgamingfreaks.Bukkit.Language(plugin, 1, 1, java.io.File.separator + "lang", "items_", "legacy_items_");
itemNameLanguage.setFileDescription("item name language");
itemNameLanguage.load(plugin.getConfiguration().getLanguage(), at.pcgamingfreaks.YamlFileUpdateMethod.OVERWRITE);
itemNameResolver.loadLegacy(itemNameLanguage, plugin.getLogger());
}
else
{
at.pcgamingfreaks.Bukkit.Language itemNameLanguage = new at.pcgamingfreaks.Bukkit.Language(plugin, 2, java.io.File.separator + "lang", "items_");
itemNameLanguage.setFileDescription("item name language");
itemNameLanguage.load(plugin.getConfiguration().getLanguage(), at.pcgamingfreaks.YamlFileUpdateMethod.OVERWRITE);
itemNameResolver.load(itemNameLanguage, plugin.getLogger());
}
itemNameResolver.load(plugin, plugin.getConfiguration());
else[STANDALONE]*/
itemNameResolver = at.pcgamingfreaks.PluginLib.Bukkit.ItemNameResolver.getInstance();
/*end[STANDALONE]*/