From 39d8ac88c8fe27ceb182de0d515bdcc08070fd5a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 29 Nov 2020 09:44:24 +0000 Subject: [PATCH] Updated to 5.3.1 --- .../java/com/willfp/ecoenchants/enchantments/EcoEnchant.java | 4 ---- gradle.properties | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java index e31362a79c..0fefe681cd 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java @@ -10,7 +10,6 @@ import com.willfp.ecoenchants.util.interfaces.ObjectCallable; import com.willfp.ecoenchants.util.interfaces.Registerable; import com.willfp.ecoenchants.util.optional.Prerequisite; -import org.apache.commons.lang.Validate; import org.apache.commons.lang.WordUtils; import org.bukkit.Bukkit; import org.bukkit.Material; @@ -25,7 +24,6 @@ import java.lang.reflect.Field; import java.util.*; -import java.util.regex.Pattern; @SuppressWarnings({"unchecked", "deprecation"}) public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher { @@ -55,8 +53,6 @@ protected EcoEnchant(String key, EcoEnchant.EnchantmentType type, Prerequisite.. protected EcoEnchant(String key, EcoEnchant.EnchantmentType type, Class plugin, Prerequisite... prerequisites) { super(NamespacedKey.minecraft(key)); - Validate.isTrue(Pattern.matches("[a-z_]", key), "Key must only contain lowercase letters and underscores"); - this.type = type; this.permissionName = key.replaceAll("_", ""); ConfigManager.addEnchantmentConfig(new EnchantmentConfig(this.permissionName, plugin, this.type)); diff --git a/gradle.properties b/gradle.properties index b823789b3d..b455014841 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 5.3.0 +version = 5.3.1 plugin-name = EcoEnchants \ No newline at end of file