Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4968

Jukebox.setPlaying(null) causes error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Linux

    • git-Spigot-03bd4b0-49e15b4 (MC: 1.14.1)
    • n/a
    • Yes

      Using jukebox.setPlaying(null) throws an error "Invalid record type!" in console.

      org.bukkit.event.EventException: null
      at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:520) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:505) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.BlockButtonAbstract.interact(BlockButtonAbstract.java:86) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.IBlockData.interact(SourceFile:282) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:463) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1263) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:13) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:135) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:114) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:895) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:888) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:123) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:872) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:805) [spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
      Caused by: java.lang.IllegalArgumentException: Invalid record type!
      at org.apache.commons.lang.Validate.isTrue(Validate.java:136) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.CraftEffect.getDataValue(CraftEffect.java:23) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.CraftWorld.playEffect(CraftWorld.java:1195) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.CraftWorld.playEffect(CraftWorld.java:1184) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.block.CraftJukebox.update(CraftJukebox.java:38) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlockState.update(CraftBlockState.java:171) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at org.bukkit.craftbukkit.v1_14_R1.block.CraftBlockState.update(CraftBlockState.java:166) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      at minecraftvillage.villagemod.Events_Block.onBlockRedstoneEvent(Events_Block.java:60) ~[?:?]
      at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source) ~[?:?]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212]
      at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-03bd4b0-49e15b4]
      ... 20 more

            Unassigned Unassigned
            village_admin village_admin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: