Fix for crashes on Bukkit 1.7+ dev builds