#Using a non-Minecraft related class in a Minecraft Bukkit plugin

1 messages · Page 1 of 1 (latest)

charred flower
#

Would love to be doing Rust rn but I have to use Java, and moreover I have to make a Bukkit plugin and I'm told Bukkit isn't great (and no I can't use Fabric, our server uses many plugins that have not been ported to Bukkit and likely never will).

I'm specifically trying to do stuff with Mastodon API and i'm getting this error:
Caused by: java.lang.ClassNotFoundException: com.sys1yagi.mastodon4j.MastodonClient$Builder

Which would imply the Mastodon class isn't being loaded...except I have it specified in pom.xml and I can build successfully.

Is there something I need to add to the plugin.yml to make this work, like how I have to add something for ProtocolLib?

#

after making this post i found a plugin that answers my question and no plugin.yml is not it.

#

oh i should provide code lol

honest shell
#

not too familiar with java (beyond implementing algorithms in it for the course I'm taking) but have you tried manually adding a directory with that mastodon class to the classpath when running the minecraft jar?

#

afaik it should be bundled in the jar but idk

charred flower
#

I suppose I could

#

oh its kotlin

#

that could be related

honest shell
#

oh i think that you need a special library for using kotlin with minecraft

#

perhaps

#

not sure if that's just for using fabric with kotlin or just overall

#

but there's one out there that i've occasionally needed to use for some mods

charred flower
#

spent two hours trying to move to gradle/intellij so i could import kotlin and nope i don't think that's it

#

oh wait