mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed /ecodebug not working with new EcoCraftEnchantment
This commit is contained in:
parent
00ae789a38
commit
39d8278684
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user