Port to Bukkit: compiles and passes tests

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>