public static void commandMute(CommandSender sender, String player, String duration){
            if (player == null || duration == null) {
                sender.sendMessage(Msg.$("mute-usage"));
                return;
            }

            int mute;
            try {
                mute = Integer.parseInt(duration);
            } catch (Exception e){
                if (!duration.equals("forever")){
                    sender.sendMessage(Msg.$("not-valid-num"));
                    return;
                } else {
                    mute = -1;
                }
            }
            Long mutelong = Long.parseLong(Integer.toString(mute));
            MuteManager.Mute(sender, player, mutelong);
            List perms = config.getList("add-permissions.list", null);
            if (perms != null)
            for (int i = 0; i < perms.size(); i++) {
                Access.addNode(player, (String) perms.get(i));
            }
            if (config.getString("set-group", "") != ""){
                String group = config.getString("set-group", "");
                Log.info(group);
                Access.addGroup(player, group);
            }
    }