Remove reduntant reload

This commit is contained in:
Olivoz 2020-09-20 15:32:01 +02:00
parent cd37c47ef7
commit 093f8926fe

View File

@ -350,7 +350,7 @@ public class Loader {
Bukkit.getLogger().info("Registering Enchantment Listeners..."); Bukkit.getLogger().info("Registering Enchantment Listeners...");
EcoEnchants.getAll().forEach((ecoEnchant -> { EcoEnchants.getAll().forEach((ecoEnchant -> {
if(!ecoEnchant.isEnabled()) { if(ecoEnchant.isEnabled()) {
Bukkit.getPluginManager().registerEvents(ecoEnchant, EcoEnchantsPlugin.getInstance()); Bukkit.getPluginManager().registerEvents(ecoEnchant, EcoEnchantsPlugin.getInstance());
} }
})); }));
@ -416,15 +416,6 @@ public class Loader {
Bukkit.getLogger().info("----------------------------"); Bukkit.getLogger().info("----------------------------");
}); });
/*
Reload Data
*/
Bukkit.getScheduler().runTaskLater(EcoEnchantsPlugin.getInstance(), () -> {
Bukkit.getLogger().info("Reloading...");
CommandEcoreload.reload();
}, 2);
/* /*
Finish Finish
*/ */