Fixed some default Faction Upgrades materials not being compatible with 1.14

This commit is contained in:
DroppingAnvil 2019-09-16 12:51:58 -05:00
parent 4181ff539d
commit 89413057cc

View File

@ -182,6 +182,12 @@ public class FactionsPlugin extends MPlugin {
this.loadSuccessful = false; this.loadSuccessful = false;
saveDefaultConfig(); saveDefaultConfig();
if (mc114) {
if (getConfig().getString("fupgrades.MainMenu.EXP.EXPItem.Type").equals("EXP_BOTTLE")) getConfig().set("fupgrades.MainMenu.EXP.EXPItem.Type", "EXPERIENCE_BOTTLE");
if (getConfig().getString("fupgrades.MainMenu.Spawners.SpawnerItem.Type").equals("MOB_SPAWNER")) getConfig().set("fupgrades.MainMenu.Spawners.SpawnerItem.Type", "SPAWNER");
if (getConfig().getString("fupgrades.MainMenu.DamageReduct.ReduceItem.Type").equals("GOLD_CHESTPLATE")) getConfig().set("fupgrades.MainMenu.DamageReduct.ReduceItem.Type", "GOLDEN_CHESTPLATE");
if (getConfig().getString("fupgrades.MainMenu.Warps.WarpItem.Type").equals("EYE_OF_ENDER")) getConfig().set("fupgrades.MainMenu.Warps.WarpItem.Type", "ENDER_EYE");
}
// Load Conf from disk // Load Conf from disk
Conf.load(); Conf.load();