Code from the book, "Learn to Program with Minecraft Plugins", ported from Bukkit to CanaryMod.