A quick demo of how to add event handlers to Bukkit using Javascript.

Exploding Arrows in Minecraft in < 10 lines of code
walterhiggins.net