Question CommandAPI causes error

Factice

New member
Mar 22, 2025
2
0
1
Im kinda new to plugin development and i got a problem with CommandAPI. I got my code with events and commands and all. But when i try to register the commandapi in my main and then start my server in intellij, this error is shown: "Caused by: java.lang.ClassNotFoundException: net.minecraft.core.HolderLookup$a"
I still can join the server but the plugin just doesnt work. Does anyone know why?
 

Factice

New member
Mar 22, 2025
2
0
1
can you share your code? or you can use my command api to make commands.
It just appeard when i put that line "CommandAPI.onLoad(CommandAPIBukkitConfig(this).silentLogs(true))" there.
Here is my main:
class Main : KPaper() {

override fun load() {
CommandAPI.onLoad(CommandAPIBukkitConfig(this).silentLogs(true))
server.consoleSender.sendMessage(Component.text("Hallo Server"))

FirstCommand()
}



override fun startup() {
CommandAPI.onEnable()
DamageEvent
}



override fun shutdown() {
CommandAPI.onDisable()
server.consoleSender.sendMessage(Component.text("Bye :("))
}

}