lgou2w/ldk

Unable to access constructor for command inner class, register failed

Closed this issue · 1 comments

See:

val (root, instance) = try {
val root = parseRoot(manager, child)
val instance = child.newInstance()
root to instance
} catch (e: Exception) {
if (e !is CommandParseException)
betterError(manager, """
Unable to access constructor of the $child, confirm the declaration and 'public' modifier. filtered
Correction: ?
class ${child.name} (...) or
class ${child.name} { public constructor(...) }
""".trimIndent(), e)
null to null
}

Fixed in 0.1.8-beta7-hotfix1 .