try {
report.write(dest);
sender.sendMessage(ChatColor.YELLOW + "CraftBook report written to "
+ dest.getAbsolutePath());
} catch (IOException e) {
throw new CommandException("Failed to write report: " + e.getMessage());
}
if (args.hasFlag('p')) {
CraftBookPlugin.inst().checkPermission(sender, "craftbook.report.pastebin");