Don't require plugin to be enabled when registering extensions

This commit is contained in:
Him188 2020-09-08 12:23:27 +08:00
parent fac66583ed
commit 6af2094b8f

View File

@ -38,7 +38,7 @@ public open class AbstractExtensionPoint<T : Extension>(
@Synchronized
@ConsoleExperimentalAPI
public fun registerExtension(plugin: Plugin, extension: T) {
require(plugin.isEnabled) { "Plugin $plugin must be enabled before registering an extension." }
// require(plugin.isEnabled) { "Plugin $plugin must be enabled before registering an extension." }
instances.add(ExtensionRegistry(plugin, extension))
}