public static boolean isMuted(String player){
        if (player == null) return false;
        else {
            Double mute = config.getDouble("mute.".concat(player.toLowerCase()).concat(".time"), 0);
            
            if (mute == -1){
                return true;
            } else if (mute == 0){
                deleteMute(player);
                return false;
            } else {
                mute *= 1000;
                Long start;
                try {
                    start = (Long) config.get("mute.".concat(player).concat(".start"));
                } catch (Exception e){
                    return true;
                }
                if (start == null) {
                    return true;
                }
                Long mutems = Long.parseLong(Integer.toString(mute.intValue()));
                if (mutems == null)
                    return false;
                
                mutems += start;
                if (System.currentTimeMillis() < mutems){
                    return true;
                } else {
                    deleteMute(player);
                    return false;
                }
                
            }
        }
    }