public static void Mute(CommandSender sender, String muted, Long time){
        if (sender instanceof Player) {
            if (!Access.canMute((Player) sender)){
                sender.sendMessage(Msg.$("not-permitted"));
                return;
            }
            if (time == -1) {
                if (!Access.canMute((Player) sender, "forever")) {
                    sender.sendMessage(Msg.$("not-permitted"));
                    return;  
                }
            }
        }
        if (!isMuted(muted)) {
            config.set("mute.".concat(muted.toLowerCase()).concat(".time"), time);
            config.set("mute.".concat(muted.toLowerCase()).concat(".start"), System.currentTimeMillis());
            try {
                config.save(configFile);
            } catch (IOException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }
            sender.sendMessage(Msg.$("muted-success").replace("%player%", muted));
            if (time == -1) {
                MuteMan.server.getPlayer(muted).sendMessage(Msg.$("you-are-muted").replace("%time%", Msg.$("ever")));
            } else {
                MuteMan.server.getPlayer(muted).sendMessage(Msg.$("you-are-muted").replace("%time%", MuteManager.getTime(MuteMan.server.getPlayer(muted).getName()).toString().concat(Msg.$("sec"))));
            }
        } else {
            sender.sendMessage(Msg.$("muted-already").replace("%time%", getTime(muted).toString()).replace("-1", Msg.$("ever")));
        }
    }