Updated to 5.3.1

This commit is contained in:
Auxilor
2020-11-29 09:44:24 +00:00
parent 6508be2488
commit 39d8ac88c8
2 changed files with 1 additions and 5 deletions

View File

@@ -10,7 +10,6 @@ import com.willfp.ecoenchants.util.StringUtils;
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 org.jetbrains.annotations.NotNull;
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 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
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));

View File

@@ -1,2 +1,2 @@
version = 5.3.0
version = 5.3.1
plugin-name = EcoEnchants