Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API wont load in my plugin. #492

Open
ImOpaque opened this issue Jan 20, 2023 · 0 comments
Open

API wont load in my plugin. #492

ImOpaque opened this issue Jan 20, 2023 · 0 comments
Assignees
Labels

Comments

@ImOpaque
Copy link

Hi there,

I'm using TitleManager's API to send messages in my plugin currently. I've followed all the steps in the wiki but instead of storing the variable in my onEnable() I've created it in my class, and instead I'm assigning it in my onEnable() so I can grab it by calling my main class.

I'm getting an error apparently due to the casting in the onEnable() method. It wont take TitleManagerAPI as a cast or something.

I'm using TitleManager 2.3.6(2.20 in pom.xl)
I'm running Paper 1.19.2

Stacktrace:
java.lang.ClassCastException: class io.puharesource.mc.titlemanager.TitleManagerPlugin cannot be cast to class io.puharesource.mc.titlemanager.api.v2.TitleManagerAPI (io.puharesource.mc.titlemanager.TitleManagerPlugin is in unnamed module of loader 'TitleManager-2.3.6.jar' @21e9d224; io.puharesource.mc.titlemanager.api.v2.TitleManagerAPI is in unnamed module of loader 'GGWave-1.0.0.jar' @7bd7626) at me.opaque.ggwave.GGWave.onEnable(GGWave.java:38) ~[GGWave-1.0.0.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:542) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:565) ~[paper-1.19.2.jar:git-Paper-307] at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:479) ~[paper-1.19.2.jar:git-Paper-307] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:636) ~[paper-1.19.2.jar:git-Paper-307] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:422) ~[paper-1.19.2.jar:git-Paper-307] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[paper-1.19.2.jar:git-Paper-307] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-307] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants