From 39d82786849fb5b70106a5dbe0ffb1a0c34ffb1d Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 27 Apr 2021 13:04:25 +0100 Subject: [PATCH] Fixed /ecodebug not working with new EcoCraftEnchantment --- .../willfp/ecoenchants/command/commands/CommandEcodebug.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java index 98d407e0..288e282c 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandEcodebug.java @@ -80,7 +80,7 @@ public class CommandEcodebug extends AbstractCommand { List 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("");