private boolean time(CommandSender sender, String[] args) {
        if (args.length < 4) {
            sender.sendMessage(ChatColor.RED + "Usage: time <add/sub/set> <time> <sec/min/hour/day/week/month>");
            return true;
        }

        long time = plugin.parseTimeSpec(args[2], args[3]);
        if (time == 0) {
            sender.sendMessage(ChatColor.RED + "Invalid time format");
            return true;
        }

        boolean add = args[1].equalsIgnoreCase("add"), set = args[1].equalsIgnoreCase("set"), sub = args[1]
                .equalsIgnoreCase("sub");
        if (add || set || sub) {
            if (ban.endTime == 0) {
                ban.endTime = ban.time;
            }
            if (add) {
                ban.endTime += time;
            } else if (set) {

                ban.endTime = ban.time + time;
            } else if (sub) {
                ban.endTime -= time;
            }
            Date date = new Date();
            date.setTime(ban.endTime * 1000);
            sender.sendMessage(ChatColor.YELLOW + "New time: " + ChatColor.WHITE + date.toString());
            return true;
        }
        return false;
    }