You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) ~[?:?]
The text was updated successfully, but these errors were encountered:
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) ~[?:?]
The text was updated successfully, but these errors were encountered: