-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
None
Ran the following two commands to add the totalKillCount objective to scoreboard and then display it in the tablist.
>scoreboard objectives add Kills totalKillCount Kills
>scoreboard objectives setdisplay list Kills
Upon killing a mob, console throws error:
[02:05:13 FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.ClassCastException: net.minecraft.server.v1_9_R1.ScoreboardScore cannot be cast to net.minecraft.server.v1_9_R1.ScoreboardObjective at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_65] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_65] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:46) [spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:716) [spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:655) [spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:554) [spigot_server.jar:git-Spigot-7d15d07-c194444] at java.lang.Thread.run(Unknown Source) [?:1.8.0_65] Caused by: java.lang.ClassCastException: net.minecraft.server.v1_9_R1.ScoreboardScore cannot be cast to net.minecraft.server.v1_9_R1.ScoreboardObjective at net.minecraft.server.v1_9_R1.EntityHuman.b(EntityHuman.java:462) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityLiving.die(EntityLiving.java:952) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityZombie.die(EntityZombie.java:553) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityLiving.damageEntity(EntityLiving.java:890) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityMonster.damageEntity(EntityMonster.java:44) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityZombie.damageEntity(EntityZombie.java:179) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityHuman.attack(EntityHuman.java:997) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.EntityPlayer.attack(EntityPlayer.java:1141) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1529) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:68) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.PacketPlayInUseEntity.a(SourceFile:12) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_65] at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_65] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) ~[spigot_server.jar:git-Spigot-7d15d07-c194444] ... 5 more