Common code for Bukkit plugins