diff --git a/eco-api/src/main/java/com/willfp/eco/core/integrations/IntegrationRegistry.java b/eco-api/src/main/java/com/willfp/eco/core/integrations/IntegrationRegistry.java index 76b2d4462..1266e1510 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/integrations/IntegrationRegistry.java +++ b/eco-api/src/main/java/com/willfp/eco/core/integrations/IntegrationRegistry.java @@ -17,6 +17,13 @@ * @param The type of integration. */ public class IntegrationRegistry extends Registry { + /** + * Create a new integration registry. + */ + public IntegrationRegistry() { + super(); + } + @Override public @NotNull T register(@NotNull final T element) { return executeSafely(() -> super.register(element), element); diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/KeyRegistry.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/KeyRegistry.kt index 29a93f7f4..0e331d2d1 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/KeyRegistry.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/data/KeyRegistry.kt @@ -4,6 +4,7 @@ import com.willfp.eco.core.config.interfaces.Config import com.willfp.eco.core.data.keys.PersistentDataKey import com.willfp.eco.core.data.keys.PersistentDataKeyType import org.bukkit.NamespacedKey +import java.math.BigDecimal object KeyRegistry { private val registry = mutableMapOf>() @@ -45,7 +46,7 @@ object KeyRegistry { throw IllegalArgumentException("Invalid Data Type! Should be Config") } PersistentDataKeyType.BIG_DECIMAL -> if (default !is BigDecimal) { - throw IllegalArgumentException("Invalid Data Type! Should be Config") + throw IllegalArgumentException("Invalid Data Type! Should be BigDecimal") } else -> throw NullPointerException("Null value found!")