mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-23 15:15:12 +01:00
/ecodebug external fix
This commit is contained in:
parent
77bb8d122b
commit
a15a924565
@ -79,7 +79,7 @@ public class CommandEcodebug extends AbstractCommand {
|
||||
|
||||
List<Enchantment> extern = Arrays.stream(Enchantment.values()).collect(Collectors.toList());
|
||||
extern.removeAll(new ArrayList<>(EcoEnchants.values()));
|
||||
extern.removeIf(enchantment -> enchantment.getClass().toString().toLowerCase().contains("CraftEnchantment"));
|
||||
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