Added disabled check for enchanting

This commit is contained in:
Auxilor 2020-08-29 21:00:52 +01:00
parent 7d660a5871
commit a1bd4f8a3f

View File

@ -83,6 +83,8 @@ public class EnchantingListeners implements Listener {
continue;
if (enchantment.getRarity().getMinimumLevel() > cost)
continue;
if(enchantment.isDisabled())
continue;
if (!enchantment.canGetFromTable())
continue;
if (!player.hasPermission("ecoenchants.fromtable." + enchantment.getPermissionName()))