Fixed /ecodebug not working with new EcoCraftEnchantment

This commit is contained in:
Auxilor 2021-04-27 13:04:25 +01:00
parent 00ae789a38
commit 39d8278684

View File

@ -80,7 +80,7 @@ public class CommandEcodebug extends AbstractCommand {
List<Enchantment> extern = Arrays.stream(Enchantment.values()).collect(Collectors.toList());
extern.removeAll(EcoEnchants.values().stream().map(EcoEnchant::getEnchantment).collect(Collectors.toList()));
extern.removeIf(enchantment -> enchantment.getClass().toString().toLowerCase().contains("craftbukkit"));
extern.removeIf(enchantment -> enchantment.getClass().toString().toLowerCase().contains("CraftEnchantment"));
String external = extern.stream().map(enchantment -> "{" + enchantment.toString() + ", Provider: " + enchantment.getClass().toString() + "}").collect(Collectors.joining(", "));
Bukkit.getLogger().info("External Enchantments: " + external);
Bukkit.getLogger().info("");