I filed a report on Jukeboxes not working properly and playing an incorrect "kerklunk" sound when putting a record in them, which was fixed. (SPIGOT-1568)
I have now found out that using the Jukebox API to set the jukebox as playing also plays that incorrect sound and was not fixed from the standard jukebox fix.
This code worked in all versions of MC 1.8
if (block.getState() instanceof Jukebox) { Jukebox jukebox = (Jukebox) block.getState(); if (!block.isBlockPowered() && jukebox.isPlaying()) { jukebox.setPlaying(jukebox.getPlaying()); } }