CMI integration requires a tweak?
mrfloris opened this issue ยท 6 comments
[06:36:52] [Server thread/WARN]: [MobHunting] Task #203437 for MobHunting v7.0.5 generated an exception
java.lang.NoSuchMethodError: com.Zrips.CMI.CMI.getActionBar()Lcom/Zrips/CMI/utils/ActionBar;
at one.lindegaard.MobHunting.compatibility.CMICompat.sendActionBarMessage(CMICompat.java:60) ~[?:?]
at one.lindegaard.MobHunting.Messages.playerActionBarMessageNow(Messages.java:565) ~[?:?]
at one.lindegaard.MobHunting.Messages.access$000(Messages.java:44) ~[?:?]
at one.lindegaard.MobHunting.Messages$1.run(Messages.java:538) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) [spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1036) [spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:406) [spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot-1.15.2.jar:git-Spigot-2040c4c-94cb030]
at java.lang.Thread.run(Thread.java:834) [?:?]
Just to add on this one, new updated version of CMI, which will come out today, will have some rework on actionbar and titlemessage methods, which will be separate and moved to their own classes. So new methods to get them will be CMI#getActionBarManager() and CMI#getTitleMessageManager()
Edit: Added back old methods, atleast for time being. Tho its strongly recommended to update to new methods as old one will be removed at some point in future.
I was not aware the Zrips had changed the API. I will download newest version and try to use
CMI#getActionBarManager() and CMI#getTitleMessageManager()
Thank you.But I think there's some debug stuff left over in this build.
[17:17:32] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:32] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:32] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:33] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:33] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:33] [Server thread/ERROR]: Could not pass event EntityDeathEvent to MobHunting v7.0.6
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:721) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.d(EntityLiving.java:1328) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.die(EntityLiving.java:1277) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1124) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityBat.damageEntity(EntityBat.java:187) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.Entity.burn(Entity.java:1043) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.Entity.move(Entity.java:647) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.e(EntityLiving.java:2190) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.movementTick(EntityLiving.java:2552) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityInsentient.movementTick(EntityInsentient.java:512) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2356) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityInsentient.tick(EntityInsentient.java:275) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.EntityBat.tick(EntityBat.java:86) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:626) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.World.a(World.java:694) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:395) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1082) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:406) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
at one.lindegaard.MobHunting.MobHuntingManager.onMobDeath(MobHuntingManager.java:659) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor574.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot-1.15.2.jar:git-Spigot-2040c4c-893ad93]
... 24 more
[17:17:33] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:33] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:34] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:34] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:35] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:35] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:35] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:36] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:36] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:36] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:36] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:37] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:37] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:37] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:37] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:37] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:38] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:38] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:38] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:38] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!
[17:17:38] [Server thread/INFO]: (Player attacked something) EntityDamageEvent fired!