Skip to content

Commit

Permalink
Updated to 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Nov 29, 2020
1 parent 6508be2 commit 39d8ac8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 5.3.0
version = 5.3.1
plugin-name = EcoEnchants

0 comments on commit 39d8ac8

Please sign in to comment.