public String command(CommandSender sender, Command command, String[] args) {
        int size = 5;
        if (args.length > 0)
            try {
                size = Integer.parseInt(args[0].trim());
            } catch (NumberFormatException ignored) {}
        List<BanInfo> bans = plugin.getUBDatabase().listRecent(size);
        if (bans.size() < 1)
            return plugin.getString(Language.HISTORY_FAILED);
        String msg = plugin.getString(Language.HISTORY_HEADER);
        if (msg.contains(Formatting.AMOUNT))
            msg = msg.replace(Formatting.AMOUNT, args[0]);
        sender.sendMessage(Formatting.replaceAmpersand(msg));
        for (BanInfo ban : bans) {
            Date date = new Date();
            date.setTime(ban.getEndTime() * 1000);
            String dateStr = date.toString();
            switch (ban.getType()) {
                case TEMPBAN:
                case TEMPIPBAN:
                case TEMPJAIL: {
                    sender.sendMessage(ChatColor.RED + BanType.toCode(ban.getType()) + ": " + ban.getName() + ChatColor.GRAY + " by " + ban.getAdmin() + " till " + dateStr.substring(4, 19) + " for " + ban.getReason());
                    break;
                }
                default: {
                    sender.sendMessage(ChatColor.RED + BanType.toCode(ban.getType()) + ": " + ban.getName() + ChatColor.GRAY + " by " + ban.getAdmin() + " for " + ban.getReason());
                    break;
                }
            }
        }
        return null;
    }