public String command(final CommandSender sender, Command command, String[] args) {
        try {
            BufferedWriter banlist = new BufferedWriter(new FileWriter("banned-players.txt", true));
            for (String p : plugin.cache.keySet()) {
                for (BanInfo info : plugin.cache.get(p)) {
                    if (info.getType() == BanType.BAN) {
                        banlist.newLine();
                        banlist.write(g(p, info.getAdmin(), info.getReason()));
                    }
                }
            }
            banlist.close();
            BufferedWriter iplist = new BufferedWriter(new FileWriter("banned-ips.txt", true));
            for (String p : plugin.cacheIP.keySet()) {
                for (BanInfo info : plugin.cacheIP.get(p)) {
                    if (info.getType() == BanType.IPBAN) {
                        iplist.newLine();
                        iplist.write(g(p, info.getAdmin(), info.getReason()));
                    }
                }
            }
            iplist.close();
        } catch (IOException e) {
            String msg = Formatting.replaceAmpersand(plugin.getString(Language.EXPORT_FAILED));
            plugin.log(msg);
            e.printStackTrace();
            return msg;
        }
        String msg = Formatting.replaceAmpersand(plugin.getString(Language.EXPORT_COMPLETED));
        plugin.log(msg);
        return msg;
    }